Creating Date/Time Objects and Enums

Learn about creating new date and time class objects and enums.

We'll cover the following

Creating date and time objects

Creating new date and time objects is much easier and less error-prone in Java 8. Every type is immutable and has static factory methods. For example, creating a new LocalDate for March 15, 2014 is as simple as:

Get hands-on with 1400+ tech skills courses.