Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Why was the previous date and time flawed?
Home
JAVA
Why was the previous date and time flawed?
0
votes
asked
Mar 1, 2023
in
JAVA
by
sharadyadav1986
Why was the previous date and time flawed?
previous-date-time
java9
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 1, 2023
by
sharadyadav1986
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.
...