Multiple choice

Which of the following types of accesses in Java allows a method to be accessible to all the classes of a package?

  1. Private access

  2. Protected access

  3. Default access

  4. Key access

  5. Large access

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

This type of access in Java allows a method to be accessible to all the classes of a package.