Home » JAVA Programming » Modifier Types » Question
  1. What is true of final class?
    1. Final class cannot be instantiated
    2. Final class cannot be inherited
    3. Final class cause compilation failure
    4. Final class cause runtime failure
    5. None of these
Correct Option: B

Final class cannot be inherited. This helps when we do not want classes to provide extension to these classes.



Your comments will be displayed only after manual approval.