Friday, 1 September 2017

Java Static Methods

Cited from the Book Java How to Program

Static method often define frequently used tasks.

A static method is called by using its class name followed by a dot (.) and the method name, as in ClassName.methodName( arguments ).

Notice that you do not create an object of class JOptionPane to use its static method. 

No comments:

Post a Comment