adspace


What are the advantages of java 8’s date and time api over old date api and joda time api?

Answer Posted / Gaurav Kumar Gupta

Java 8's Date and Time API offers several advantages over the old Date API and Joda Time API: 1. Improved readability and maintainability with a fluent, chainable API design. 2. Removes many inconsistencies present in the old Date API. 3. Supports all modern date and time features like ZoneOffsets, Zones, and Clocks. 4. Provides atomic operations for date and time manipulation to improve thread safety. 5. Compliant with ISO-8601 international standard.

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 locale class?

1027


what is reflection api? How are they implemented?

1106


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

1031


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

938


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

924


Can we extract main method from another class?

1035


What is the resourcebundle class?

1013


How does java handle integer overflows and underflows?

1116


Are jvm’s platform independent?

984


What is the java api?

999