Classes in one or more compilation units can be grouped together and form a package. |
This is realized by the package statement, placed at the beginning of the compilation unit. |
A class Fred in package foo can be referenced by its full name foo.Fred, or by its local name Fred, after including the package import statement import foo; |
Packages can be nested. For example, a HTML Parser class has the following full name: net.www.html.Parser |
The initial alpha3 release of Java/HotJava is organized as 12 packages and it contains ~250 classes. |