Multiple choice

What does the access modifier "private" mean?

  1. Only its own class can access it

  2. Any class can access it

  3. Only its package can access it

  4. Only its subclasses can access it

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

The 'private' access modifier restricts visibility so that the member can only be accessed within the class where it is declared.