What's the etymology of 'static' method? [duplicate]
问题 This question already has answers here : What does the 'static' keyword do in a class? (21 answers) Closed last month . In many languages, e.g. Java and JavaScript, the 'static' keyword refers to class methods or class variables. Why is it called the 'static' method? Why not 'blue' method? Or 'global' method? Where does the keyword come from? What is the origin for that denomination? Is it related to the compiler? 回答1: To answer to ur 1st and 2nd question A static method belongs to the class