Home » JAVA Programming » Object & Classes » Question
  1. Which of these keywords can be used to prevent inheritance of a class?
    1. constant
    2. final
    3. super
    4. class
    5. None of these
Correct Option: B

Declaring a class final implicitly declared all of its methods final, and makes the class inheritable.



Your comments will be displayed only after manual approval.