In this tutorial, we will learn about java.util Package. A Java package is a collection of related classes, interfaces, sub-packages, and other object-oriented types that are grouped together.
java.util provides the formatted printing and scanning, array utilities, Event model, Date & Time facilities, i18n(internationalization), the Java Collections Framework and other miscellaneous utility classes.
Java Collections Framework is a unified architecture for representing and manipulating collections in Java programs. A collection is a container that groups multiple elements or objects as a single element.
A collection of ATM Cards.
Some of the interfaces in java.util package are as follows:
Some of the classes in java.util package are as follows:
We can import the classes in the package using the import statement. For example, to import the Scanner class in the program, we can use the below import statement.
Some of the sub packages in java.util package are as follows:
Java Tutorial on this website:
For more information on Java, visit the official website :