What does public static void
mean in Java?
I\'m in the process of learning. In all the examples in the book I\'m working from public static void
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.
Because of use of a static
keyword main()
is your first method to be invoked..
static
doesn't need to any object to instance...
so,main( )
is called by the Java interpreter before any objects are made.