Multiple choice technology programming languages

The method which is marked as final can be overridden.

  1. True

  2. False

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

The final keyword on a method explicitly prevents subclasses from overriding it. This is used when you want to ensure a method's implementation remains unchanged in the inheritance hierarchy.