Multiple choice

Which of the following modifiers in Java is visible to packages and all its subclasses?

  1. Default

  2. Public

  3. Protected

  4. Private

  5. None of the above

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

It is visible to packages and all of its subclasses.