Which of the following methods cannot be overridden in Java ?

2025

Which of the following methods cannot be overridden in Java ?

Answer: A. Static methodsIn Java, instance methods can be overridden in a subclass. Abstract methods must be implemented (overridden) by a concrete subclass, and non-final instance…

  1. A.

    Static methods

  2. B.

    Instance methods

  3. C.

    Abstract methods

  4. 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.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…