Common packages for Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.