Java uses the package structure to organize and manage classes and interface files. This article describes several common packages in the Java language class library,
The core classes of Java are placed under the Java package and its sub-packages, which are the aforementioned APIs (application interfaces)
First Package: Java.lang package.
The package provides the basic class for programming in the Java language, the core class of the Java language, which is the default import package for the system. The object, Math, String, StringBuffer, System, Thread, and Throwable classes in the package need to be focused, because they are widely used.
Second Package: Java.util package.
The package contains a large number of Java tool classes/interfaces and collection framework classes/interfaces, such as arrays and List,set.
Third Package: Java.io package.
The package contains some Java input/output programming related classes/interfaces that provide input and output of the system through file system, data flow, and serialization.
Fourth package: java.net bag.
The package contains a number of Java network programming related classes/interfaces that provide classes for implementing network applications and development.
Fifth package: java.sql bag.
The package contains Java-related classes/interfaces for JDBC database programming, providing access to and processing of data APIs stored in a data source (typically a relational database) using the Java language.
Sixth Package: java.awt package (mainly used to build graphical user interface (GUI) programs, no longer used,)
Seventh package: Javax.swing bag.
The package contains a related class/interface for programming the javaswing graphical user interface, and provides a set of "lightweight" components that try to make these components work the same way on all platforms.
Eighth package: Java.text bag.
The package contains some Java formatting-related classes that provide classes and interfaces that work with text, dates, numbers, and messages in a way that is not related to natural language.
Common packages for Java