Java Util Date is Past, Now is a new Era, Java Time is a Future, my teacher say like that

Java 8 come with the new Api for Date. LocalDate is an immutable date-time object that represents a date, often viewed as year-month-day. Other date fields, such as day-of-year, day-of-week and week-of-year, can also be accessed. For example, the value “2nd October 2007” can be stored in a LocalDate.


Let’s see this code, how to use LocalDate


And What we get is