How restrictive is the default accessibility compared to public, protected, and private accessibility in Java?

  1. Less restrictive than public

  2. More restrictive than public, but less restrictive than protected.

  3. More restrictive than protected, but less restrictive than private.

  4. More restrictive than private.

  5. Less restrictive than protected from within a package, and more restrictive than protected from outside a package.


Correct Option: C

Find more quizzes: