What is a static method in Java?
A. A method that is called on an object of a class.
B. A method that is called on a class itself, rather than on an object of the class.
C. A method that is called on an object of a subclass.
D. None of the above
Answer:B
What is a static method in Java?
A. A method that is called on an object of a class. B. A method that is called on a class itself, rather than on an object of the class. C. A method that is called on an object of a subclass. D. None of the above