+ 9
The keyword static allows main( ) to be called without having to instantiate a particular instance of the class. This is necessary since main( ) is called by the Java interpreter before any objects are made. The keyword voidsimply tells the compiler that main( ) does not return a value. static means that the method is associated with the class, not a specific instance (object) of that class. This means that you can call a static method without creating an object of the class. void means that the method has no return value. If the method returned an int you would write int instead of void.
13th Dec 2017, 3:45 AM
GAWEN STEASY
GAWEN STEASY - avatar