What is a static method in Java?
A. A method that can be called on an object of a class.
B. A method that can only be called within the same package.
C. A method that can be called on the class itself, rather than on an instance of the class.
D. None of the above.
Answer:C
What is a static method in Java?
A. A method that can be called on an object of a class. B. A method that can only be called within the same package. C. A method that can be called on the class itself, rather than on an instance of the class. D. None of the above.