Multiple choice

A __________ class cannot be extended.

  1. public

  2. private

  3. abstract

  4. final

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

A final class cannot be extended. If we try the compiler will give an error.