Access Modes
Classes in their own source file can only have public and default access.
Fields and methods can have any of the following access levels.
Remember that instance variables should always be private and then accessed through public getters and modified through public setters.
Modifier
Same Class
Same Package
Subclass
Universe
public
Yes
Yes
Yes
Yes
protected
Yes
Yes
Yes
default (no specified access mode)
Yes
Yes
private
Yes