15. Java Access Modifiers

15.1. Accessibility Modifiers for Top-Level Type Declarations

Accessibility Modifier: specifies from where all the types (that is, classes, enums, and interfaces) and its methods can be accessed from.

The accessibility modifier public can be used to declare top-level types in a package to be accessible from everywhere, both inside their own package and other packages.

If the accessibility modifier is omitted, they are only accessible in their own package and not in any other packages or subpackages. This is called package or default accessibility.

		// Example Code here