Java Reference
In-Depth Information
Table 21-1. Java packages basic structure
Name
Function
Applets for browser use
java.applet
Graphical User Interface
java.awt
Reading and writing
java.io
Intrinsic classes (String, etc.)
java.lang
java.lang.annotation Library support for annotation processing
Math library
java.math
Networking (sockets)
java.net
“New” I/O (not new anymore): Channel-based I/O
java.nio
Java database connectivity
java.sql
Handling and formatting/parsing dates, numbers, messages
java.text
Java 8: Modern date/time API (JSR-311)
java.time
Utilities (collections, date)
java.util
Regular Expressions
java.util.regex
JNDI
javax.naming
Support for printing
javax.print
Java 6: Scripting engines support
javax.script
Modern Graphical User Interface
javax.swing
Many packages have been added over the years, but the initial structure has stood the test of
time fairly well. In this chapter, I show you how to create and document your own packages,
and then discuss a number of issues related to deploying your package in various ways on
various platforms.
Search WWH ::




Custom Search