adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the java api?

1000


Can we extract main method from another class?

1036


what is reflection api? How are they implemented?

1107


What is the first argument of the string array in main method?

1033


How does java handle integer overflows and underflows?

1119


Are jvm’s platform independent?

986


What if I write static public void instead of public static void?

940


What is the resourcebundle class?

1016


What is the locale class?

1029


What do you understand by casting in java language? What are the types of casting?

925