Which Java keyword, applied to a method, prevents subclasses from overriding it?
Correct answer C. final
Explanation
A final method cannot be overridden in a subclass. Similarly, a final class cannot be extended and a final variable cannot be reassigned.
Answer checked How we write and check questions
Discussion