Skip to main content

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 21 to Java 25 LTS: Every Feature You Actually Need to Know

A practical walkthrough of the headline features landing in Java 21 (LTS) through Java 25 (LTS): records, pattern matching, virtual threads, sequenced collections, scoped values, and structured concurrency — with runnable examples and AI prompts you can copy straight into Claude or ChatGPT to migrate your own code.

Modern Java Testing: JUnit 6 + AssertJ + Mockito 5 + Testcontainers

A practical guide to the modern Java test stack — JUnit 6 as the runner, AssertJ for fluent assertions, Mockito 5 for mocking, and Testcontainers for real infrastructure. Includes runnable examples for each and AI prompts to generate and refactor tests.