Tagged articles

Switch Pattern Matching

3 articles · Page 1 of 1
Programmer1970
Programmer1970
May 20, 2026 · Fundamentals

Only 5 of Java 21’s 15 New Features Actually Change Your Code

Java 21, the latest LTS release, adds fifteen JEPs but only five—virtual threads, record patterns, switch pattern matching, string templates, and sequenced collections—significantly alter coding style, offering lightweight concurrency, concise data deconstruction, modern switch syntax, powerful string interpolation, and enhanced collection APIs.

Java 21Record PatternsSequenced Collections
0 likes · 8 min read
Only 5 of Java 21’s 15 New Features Actually Change Your Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2024 · Fundamentals

Unlock Java 21: Master Record Patterns, Switch Enhancements, and New Templates

This article explains Java 21’s preview features—including record patterns, enhanced switch expressions, virtual threads, string template processors, sequenced collections, and unnamed patterns—showing how they simplify type checks, pattern matching, and code readability with practical code examples.

JDK21Record PatternsSequenced Collections
0 likes · 18 min read
Unlock Java 21: Master Record Patterns, Switch Enhancements, and New Templates
Architect's Tech Stack
Architect's Tech Stack
Apr 12, 2022 · Fundamentals

JDK 18 (Java 18) GA Release: New Features, Enhancements, and Upcoming Versions

JDK 18 has been released as a GA short‑term support version with six months of maintenance, introducing nine major JEPs—including UTF‑8 as the default charset, a simple HTTP server, a Vector API incubator, and a Foreign Function & Memory API—while preparing for JDK 19 in September and the next LTS, JDK 21, in 2023.

JDK 18JEPSwitch Pattern Matching
0 likes · 6 min read
JDK 18 (Java 18) GA Release: New Features, Enhancements, and Upcoming Versions