Multiple choice technology programming languages

Final methods can be overriden.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Final methods in Java cannot be overridden. The final keyword specifically prevents a method from being modified or redefined by subclasses. This is used when you want to ensure a method's implementation remains consistent and unchanged throughout the inheritance hierarchy for security or design reasons.