explain how java se 8 data and time api solves issues of old java date api?



explain how java se 8 data and time api solves issues of old java date api?..

Answer / Ananda Gk

Java SE 8's Date and Time API addresses several issues with the old Java Date API. Firstly, it provides a clear separation between date and time, eliminating the need for `Date` objects that combined both. Secondly, it provides a more intuitive and consistent interface through the classes such as `LocalDate`, `LocalTime`, `LocalDateTime`, `ZonedDateTime`, and `Instant`. Thirdly, it supports internationalization through Localized formats and calendar systems. Lastly, it improves performance by using immutable objects that can be easily compared and manipulated without the need for explicit synchronization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

What is the difference between swing and awt components?

1 Answers  


What are the authentication modes in asp.net? : java security

1 Answers  


What is cache in java?

1 Answers  


What is phantom memory?

1 Answers  


What does jpa mean?

1 Answers  


What is a yaml file in java?

1 Answers  


What is jdk for netbeans ide?

1 Answers  


What is cookie in java?

1 Answers  


What do you understand by numeric promotion?

1 Answers  


What is an interceptor in java?

1 Answers  


Which method is used to create the daemon thread?

1 Answers  


What is transactional in java?

1 Answers  


Categories