Home » JAVA Programming » Methods » Question
  1. Which of these keywords can be used to prevent Method overriding?
    1. constant
    2. final
    3. static
    4. protected
    5. None of these
Correct Option: B

To disallow a method from being overridden, specify final as a modifier at the start of its declaration. Methods declared as final cannot be overridden.



Your comments will be displayed only after manual approval.