Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21
Angualr Top questions

Details



Peter Agyekum What is static in Java? static is a scope keyword that means the method exists before an object of the class is instantiated. To say it another way, Static means that the method belongs to the class NOT the object. In fact, it is globally visible to all instances of the class. The main method is static because the JVM needs to be able to access the method without creating an instance of the class that contains it – that would require another class and method in which it would do so, and another for instantiating that class, etc. Void is the return type for this method and means that nothing is returned