What is a static method in Java?
A. A method that can only be called from within the same class.
B. A method that can be called without an instance of the class.
C. A method that is final and cannot be overridden.
D. None of the above
Answer:B
What is a static method in Java?
A. A method that can only be called from within the same class. B. A method that can be called without an instance of the class. C. A method that is final and cannot be overridden. D. None of the above