Tagged articles
java.time
16 articles · Page 1 of 1
This article enumerates thirteen frequent Java mistakes—from returning null and misusing string concatenation to improper synchronization and lock handling—showing the flawed code, explaining why it is problematic, and providing concise, correct alternatives with runnable examples.
ConcurrentModificationExceptionJavaJava21
0 likes · 14 min read

The article explains the fundamental design flaws of java.util.Date—misleading name, mutability, non‑finality, timezone quirks, and legacy numbering—why a CTO may forbid its use, and provides a step‑by‑step guide to replace it with java.time classes such as Instant, LocalDateTime and ZonedDateTime.
BackendJavadate-time
0 likes · 12 min read

The article explains the fundamental design flaws of java.util.Date, why a code‑scan rule forces its removal, and provides a step‑by‑step guide to replace Date and related utilities with the modern java.time API, including concrete code transformations and migration tips.
BackendJavadate-time API
0 likes · 14 min read

This article explains why the long‑standing java.util.Date class is problematic for modern Java development, illustrates its design flaws with concrete code examples, and shows how the Java 8 java.time API provides a clearer, immutable, and timezone‑aware alternative for handling dates and times.
BackendDATETIMEDate
0 likes · 9 min read

This article explains the shortcomings of java.util.Date—its misleading name, mutability, poor API design, thread‑unsafe formatting, and time‑zone ambiguities—provides concrete code examples of these issues, and demonstrates modern, immutable replacements from the java.time package such as Instant, LocalDate, LocalDateTime, ZonedDateTime and Period for safer, clearer date‑time handling in Java applications.
Datejava.timespring-boot
0 likes · 13 min read

This article explains why the legacy java.util.Date and Calendar APIs are problematic, demonstrates common bugs such as integer overflow, year‑format issues, and SimpleDateFormat thread‑safety, and shows how Java 8's immutable java.time classes like LocalDate, LocalDateTime and DateTimeFormatter provide clear, safe, and concise solutions with practical code examples.
DATETIMEJavaJava 8
0 likes · 21 min read

The article explains the design flaws of java.util.Date, why it is discouraged in modern Java development, and provides a step‑by‑step guide with code examples for replacing it with java.time classes such as Instant, LocalDateTime, LocalDate, LocalTime, and ZonedDateTime.
date-timejava.timejava.util.Date
0 likes · 10 min read

The article explains the design flaws of java.util.Date, why it should be replaced, and provides a step‑by‑step guide with code examples for migrating to the modern java.time classes such as Instant, LocalDateTime, LocalDate, and ZonedDateTime in Java backend projects.
APIDatejava.time
0 likes · 10 min read

The article explains the many design flaws of java.util.Date, why modern Java projects must abandon it, and provides a step‑by‑step guide with code examples for migrating to the immutable java.time API such as Instant, LocalDateTime and ZonedDateTime.
date-timejava.timejava.util.Date
0 likes · 13 min read

The article explains the design flaws of java.util.Date, such as mutability, misleading naming, and timezone issues, and provides a step‑by‑step guide to replace it and related APIs with java.time classes like Instant, LocalDateTime, and ZonedDateTime, including code examples.
APIDatejava.time
0 likes · 13 min read

This article demonstrates how to use Java 8’s java.time package to obtain the current date and time, extract components, create specific dates, compare dates, handle periodic dates, compute future and past dates, retrieve timestamps, check leap years, calculate differences, and format/parse date strings, with concrete code examples.
DATETIMEINSTANTJava
0 likes · 10 min read

This article compares Java's legacy date handling in JDK7 with the modern java.time API introduced in JDK8, demonstrating how to create, format, and convert dates using LocalDate, LocalDateTime, DateTimeFormatter, and related methods, and provides a comprehensive table of useful LocalDate APIs.
DATETIMEJDK8Java
0 likes · 9 min read

This article introduces Java 8's new date‑time API, explains why the old java.util.Date and SimpleDateFormat were problematic, and provides eleven practical code examples that demonstrate how to obtain the current date, extract year/month/day, create specific dates, compare dates, work with time zones, and format or parse date strings.
DATETIMEJava 8code-examples
0 likes · 11 min read


JavaEdgeOct 9, 2020 · Backend Development
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

This article provides a comprehensive English summary of JDK 13's new features—including switch expression enhancements, text‑block syntax, dynamic CDS archives, ZGC memory reclamation, revamped socket APIs, new FileSystems methods, updated NIO ByteBuffer operations, the Reiwa era in java.time, Unicode 12.1 support, GC improvements, security updates, and removed legacy functionalities—accompanied by original Java code examples.
CDSJavaNIO
0 likes · 11 min read

This article explains the shortcomings of java.util.Date, introduces the immutable java.time classes LocalDate, LocalTime, and LocalDateTime introduced in Java 8, and provides detailed code examples for obtaining, comparing, adding/subtracting, and converting dates and times.
JavaJava8LocalDate
0 likes · 8 min read
