Scope and Access

AP Computer Science A· difficulty 4/5

Java's "package-private" (no modifier) visibility:

  • A

    Visible only within the same package

    check_circle
  • B

    Visible to current class only

  • C

    Visible to subclasses only

  • D

    Visible to all

Explanation

Default access: package-only.

Want 10 more like this — adaptive to your weak spots?

Related questions