Skip to main content

Java

Java Records: The Complete Guide to Immutable Data Classes

A deep-reference guide to Java Records — the concise, immutable data-carrier syntax introduced in Java 16 and matured in Java 21. Covers declaration syntax, compact constructors, custom accessors, equals/hashCode/toString behaviour, records with Jackson, records with Hibernate, records in Spring Boot, and key limitations — with fully annotated code examples and a comparison to plain Java classes.

Java Generics: The Complete Developer’s Reference

A complete reference guide to Java Generics: generic classes and methods, bounded type parameters, wildcards, the PECS rule, type erasure, generic interfaces, common pitfalls, and AI prompts to modernise raw-type code.

Java 25 Features with Examples: All 18 JEPs, Run on JDK 25

Java 25 (LTS, 16 September 2025) has 18 JEPs. This guide runs 16 of them on a real JDK 25: scoped values, flexible constructor bodies, compact source files, module imports, the KDF API, compact object headers, AOT cache and JFR, plus the previews (primitive patterns, stable values, structured concurrency, PEM), with real output and compiler errors.

Java 21 to Java 25 Upgrade Guide (with AI Prompts)

A step-by-step Java 21 to 25 upgrade guide: Maven and Gradle files, Lombok and Mockito versions, removed and warned APIs, a 12-item checklist and seven AI prompts. Every claim was run on JDK 21, 25, 26 and 27, and the old guide's mistakes are corrected.