The document discusses the four types of access modifiers in Java - private, default, protected, and public. It explains that private is accessible only within the class, default only within the package, protected within the package and outside by subclasses, and public everywhere. It provides examples of each access modifier's scope and differences between them.
The document discusses the four types of access modifiers in Java - private, default, protected, and public. It explains that private is accessible only within the class, default only within the package, protected within the package and outside by subclasses, and public everywhere. It provides examples of each access modifier's scope and differences between them.