Multiple choice technology programming languages

Which modifier is used to prevent a method from being overridden?

    1. final
    1. native
    1. local
    1. protected
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The final modifier prevents a method from being overridden by subclasses. native indicates JNI implementation, local is not a valid modifier, and protected is an access specifier that does not prevent overriding.