๐Ÿ’ปap computer science a review

Default access

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

Default access (or package-private access) is when no explicit access modifier is specified for a class member. It allows access within the same package but restricts accessibility from outside packages.

"Default access" also found in: