Legacy java.util.Date, Calendar and SimpleDateFormat were mutable, zero-month-indexed and non-thread-safe. Java 8 replaced them with java.time (JSR-310): immutable, clear, ISO-8601 types separating machine timestamps from human calendar dates and time zones.
More lessons in Complete Core Java