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.
Related questions
0
votes
Q: Why was there a gap in your employment between [insert date] and [insert date]?
asked
May 17, 2019
in
Interview Question
by
pratikdikshit
#interview
#interviewquestions
#interviewquestionandanswer
#theinterview
#interviewer
#interviewpreparation
#interviewanswer
#interviewquestion
+1
vote
Q: Which class can be used instead of System.getCurrentTimeMillis() to get the date and time in Java 8?
asked
Feb 8, 2020
in
JAVA
by
rahuljain1
#java-date
#java-time
Java-questions-answers
+2
votes
Q: Which class can be used instead of System.getCurrentTimeMillis() to get the date and time in Java 8?
asked
Feb 8, 2020
in
JAVA
by
rahuljain1
#java-time-function
Java-questions-answers
0
votes
Q: Is the following code flawed in any way? Does it compile or does it produce a specific error?
asked
Feb 27, 2023
in
JAVA
by
Robindeniel
javacode
0
votes
Q: Which package contains Date/Time (JSR 310) API in Java 8?
asked
Feb 8, 2020
in
JAVA
by
rahuljain1
#jdk-package
Java-questions-answers
0
votes
Q: What was your biggest challenge with your previous boss?
asked
Oct 25, 2019
in
Interview Question
by
AdilsonLima
#interviewquestionandanswer
#interviewquestions
#interview
+1
vote
Q: What suggestion/s have you made in your previous employment that was implemented?
asked
Oct 24, 2019
in
Interview Question
by
AdilsonLima
#interview
#interviewquestions
#interviewquestionandanswer
0
votes
Q: What was your biggest problem till date while working on a Github project?
asked
Mar 8, 2020
in
Git Slack Integration
by
Hodge
0
votes
Q: A car takes 6 hours to cover a distance of 540 Km. how much should the speed in Kmph be maintained to cover the same direction in 3/2th of the previous time?
asked
Oct 31, 2019
in
Other
by
MBarbieri
0
votes
Q: What is the physical storage length of each of the data types, DATE, TIME, and TIMESTAMP?
asked
Feb 28
in
DB2
by
john ganales
db2
...