A Java package is a mechanism for organizing Java classes into namespaces similar to the modules of Modula. Java packages can be stored in compressed files called JAR files, allowing classes to download faster as a group rather than one at a time. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality.
- A package provides a unique namespace for the types it contains.
- Classes in the same package can access each other's package-access members.
Read more about Java Package: Overview, Using Packages, Package Access Protection, Creation of JAR Files, Package Naming Conventions, Core Packages in Java SE 6