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.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.