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.
Notice that you do not create an object of class JOptionPane to use its static method.
No comments:
Post a Comment