Home > Java > JavaBase > body text

What are the commonly used packages in Java?

王林
Release: 2019-12-06 14:11:57
Original
4945 people have browsed it

What are the commonly used packages in Java?

Commonly used package introduction:

java.lang: This package provides basic classes for Java programming, such as Object, Math, String, StringBuffer, System, Thread, etc. It is difficult to write Java code without using this package.

java.util: This package provides the collection framework, legacy collection classes, event model, date and time implementation, internationalization and various utility classes (string token generator, random number generator and bit array).

java.io: This package provides system input and output through the file system, data streams, and serialization.

Online video tutorial sharing: java video tutorial

java.net: This package provides classes for implementing network applications and development.

java.sql: This package provides an API for using the Java language to access and process data stored in a data source (usually a relational database).

java.awt: These two packages provide classes for GUI design and development. The java.awt package provides all classes for creating interfaces and drawing graphics images, while the javax.swing package provides a set of "lightweight" components, trying to make these components work the same way on all platforms.​

java.text: Provides classes and interfaces for processing text, dates, numbers, and messages in a natural language-independent way.

java related article tutorial sharing: java entry program

The above is the detailed content of What are the commonly used packages in Java?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template