The new Date and Time API is moved to the java.time package and the Joda time format is followed.

The classes in the new API are immutable and, hence, thread-safe. The new API contains lots of classes that allow us to have more fine-grained control over our date and time representation.

Below is the list of all the classes in the java.time package.

Get hands-on with 1200+ tech skills courses.