In this article, you will learn some of the common packages you will use as a beginner.
In Java, there are two main types of packages.
Built-in packages
User defined packages
In this article, we will focus on the built-in packages that you will likely be using.
Ways to Import
You can either import the entire package like this.
import java.lang.*;
Or individual class in the package like this
import java.lang.String;
Packages for Beginners
Below is a list of common packages that you will use. Click on the name to view the classes within each packages.
Provides for system input and output through data streams, serialization and the file system. | |
Provides classes that are fundamental to the design of the Java programming language. | |
Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). | |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. | |
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes. | |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
You view the full list of packages available
View All Packages
Comments