Site hosted by Angelfire.com: Build your free website today!
 

Packages

Java allows you to organize your classes according to functionality into packages

A package is a group of class files contained in a single folder on your hard drive.

  • Packages are resuable; can be incorporated into more that one application. (package(s) can be distributed in form of jar file)

  • Packages help to avoid class name conflicts.

  • Packages allow you to control the extent to which other classes can access your classes (see Access Modifiers below)