Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for your Java exam with our ultimate quiz based on 'Thinking in Java'. Engage with expertly crafted questions that enhance your learning process. Perfect for Java enthusiasts looking to solidify their knowledge!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is package access also known as?

  1. Private access

  2. Protected access

  3. Public access

  4. Friendly access

The correct answer is: Friendly access

Package access, also known as friendly access, grants access to members within the same package. The other options are incorrect because A) Private access only allows access to members within the same class. B) Protected access allows access to members within the same package and any subclasses, not just members within the same package. C) Public access allows access to all classes and packages.