What is a package in Java?

John Mitchell

Java programs are organized as sets of packages. A package comprises one or more compilation units. The naming of packages is hierachical and may comprise classes, interfaces, and sub-packages. Each package defines a namespace.

For more information on packages in Java, read Chapter 7 of the JLS.