JavaEdge
JavaEdge
Oct 9, 2020 · Backend Development

Mastering Java 8’s New Date and Time API: Immutable Classes, Zones, and More

This article explains why Java needed a new date‑time library, introduces the core concepts of the java.time API such as immutable value classes, domain‑driven design, factory methods, adjusters, periods, durations, time‑zone handling, and non‑ISO calendars, and provides concrete code examples for each feature.

date-timedatetime-apijava-8
0 likes · 12 min read
Mastering Java 8’s New Date and Time API: Immutable Classes, Zones, and More
Programmer DD
Programmer DD
Aug 25, 2019 · Backend Development

Why SimpleDateFormat Fails in Multithreaded Java and How to Fix It

This article explains why Java's SimpleDateFormat is not thread‑safe, demonstrates the problem with multithreaded examples, and presents two robust solutions—using ThreadLocal or the Java 8 immutable date‑time API—to ensure correct date formatting in concurrent environments.

SimpleDateFormatdate-time-apijava-8
0 likes · 6 min read
Why SimpleDateFormat Fails in Multithreaded Java and How to Fix It