# pattern-matching
3 posts
Java 25 — Primitive Types in Patterns & instanceof
Java 25 finalizes primitive type patterns — use int, long, double, and boolean in instanceof checks and switch expressions. Practical examples and migration tips.
Java
Java 21 — Record Patterns & Sealed Classes in Practice
Use Java 21's record patterns and sealed classes together — destructuring records in switch, nested patterns, and building type-safe domain models.
Java
Java 21 — Pattern Matching for switch (Exhaustive & Guarded)
Master Java 21's pattern matching for switch — type patterns, guarded patterns, null handling, exhaustiveness, and practical examples for cleaner code.
Java