Multiple choice

The programmers of ' Softek' are in a fuss on how to create a non inheritable class, advice them to use ___ keyword

  1. Final

  2. Static

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The final keyword in Java prevents a class from being inherited (subclassed). When applied to a class, it makes the class non-inheritable, which is useful for security or design purposes when you want to prevent extension.