Which of the following methods cannot be overridden in Java ?
2025
Which of the following methods cannot be overridden in Java ?
Answer: A. Static methods — In Java, instance methods can be overridden in a subclass. Abstract methods must be implemented (overridden) by a concrete subclass, and non-final instance…
- A.
Static methods
- B.
Instance methods
- C.
Abstract methods
- D.
Non-final instance methods
Attempted by 142 students.
Show answer & explanation
Correct answer: A
In Java, instance methods can be overridden in a subclass. Abstract methods must be implemented (overridden) by a concrete subclass, and non-final instance methods can also be overridden.
However, static methods cannot be overridden because they belong to the class rather than an object. If a subclass defines a static method with the same signature, it is called method hiding, not method overriding.
Therefore, the correct answer is: A. Static method.