Monday, January 07, 2008

What Is a Package in Java?

A package is a namespace that manages a set of connected classes and interfaces. Conceptually you can think of packages as being related to different folders on your computer. You can maintain and keep the HTML pages in one folder, images in another, and scripts or applications in however another. Since, the software written in the Java programming language can be composed of hundreds or thousands of individual classes; it makes sense to maintain things organized by placing related classes and interfaces into packages.

No comments: