Return to the main page Home
Learn by reading articles about Java Library
Download free Java software here Applets
Play quality Java games online Arcade
Visit our links and play the Treasure Hunt Plaza
Sample site only. Please visit http://geocities.datacellar.net/davidchan for a complete list of sites created by David Chan.

Java™ Library Packages


Packages in Java are convenient ways of grouping related classes and interfaces. Packages eliminate potential conflicts between class names and enables modular groups of classes to be available only when needed. Classes within a package do not have to be closely related. Often classes within a package are designed to work together. Every class belongs to a package.

The java class libraries are divided into the following packages:

  • java.lang includes the most fundamental classes in the Java library. This package is so important to it is imported by default.
  • java.applet includes the classes needed to create applets that appear on World Wide Web pages.
  • java.awt is the Abstract Window Toolkit. This is Java's mapping package and creates windows that you can see displayed in some applets.
  • java.io includes the classes that perform file I/O which are type safe.
  • java.net includes the classes needed to perform low level I/O over the Internet.
  • java.util includes general utility classes such as Date.

Next article


Return to the top of the page
Top of page


| Home | Library | Applets | Arcade | Plaza |

Please send any feedback to David Chan

1