Java Class Modifier
private - Members declared private are accessible only in the class itself.
package - Members declared with no access modifier are accessible in classes in the same package, as well as in the class itself.
protected - Members declared protected are accessible in subclasses of the class, in classes in the same package, and in the class itself.
public - Members declared public are accessible anywhere the class is accessible.
From. The Java Programming Language 4th Edition p.48 - James Gosling