0 votes
in JAVA by
Why was the previous date and time flawed?

1 Answer

0 votes
by

The disadvantages of the previous date and time are outlined below:

Java.util.

  • The new Java 8 Date and Time API is thread-safe, whereas Date is changeable and not thread-safe.
  • While the previous date and time are badly conceived, Java 8's Date and Time API complies with ISO standards.
  • It has added a number of date-related API classes, like LocalDate, LocalTime, LocalDateTime, etc.
  • When comparing the two in terms of performance, Java 8 performs better than the previous date and time system.

Related questions

0 votes
asked Feb 8, 2020 in JAVA by rahuljain1
0 votes
asked Feb 28 in DB2 by john ganales
...