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
What is the java api?
Can we extract main method from another class?
what is reflection api? How are they implemented?
What is the first argument of the string array in main method?
How does java handle integer overflows and underflows?
Are jvm’s platform independent?
What if I write static public void instead of public static void?
What is the resourcebundle class?
What is the locale class?
What do you understand by casting in java language? What are the types of casting?