Multiple choice

Use _________ option if the field is to be visible everywhere in the current package only.

  1. private

  2. public

  3. default

  4. protected

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

In Java, if no access modifier (private, public, or protected) is specified, the member has package-private access, often called default access. This makes the field visible to all classes within the same package.