Which of the following methods cannot be overridden in Java ?
2025
Which of the following methods cannot be overridden in Java ?
- A.
Static methods
- B.
Instance methods
- C.
Abstract methods
- D.
Final methods
Attempted by 60 students.
Show answer & explanation
Correct answer: D
Final methods cannot be overridden by subclasses as the final keyword prevents inheritance modification. Static methods are hidden rather than overridden, but final methods explicitly prohibit overriding.