Isn't "package private" member access synonymous with the default (no-modifier) access?

TurtleToes picture TurtleToes · Mar 24, 2011 · Viewed 74.1k times · Source

I am a little confused over the term "package private" that some of the documentation uses, along with the usage of "default access." Aren't package-private and default access both synonymous with protected?

Answer

Luciano Fiandesio picture Luciano Fiandesio · Mar 24, 2011

Yes, it's almost the same. The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.