Tagged articles
6 articles
Page 1 of 1
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.

JDK21Sequenced CollectionsString Templates
0 likes · 18 min read
Unlock Java 21: Master Record Patterns, Switch Enhancements, and New Templates
Programmer DD
Programmer DD
Sep 21, 2023 · Backend Development

Cut Java 21 Record Pattern Matching Code in Half

This article demonstrates how Java 21's switch pattern matching and record deconstruction let you replace verbose instanceof checks with concise two‑line snippets, even for nested records, dramatically simplifying code that extracts fields from complex objects.

Java 21backend-developmentjava
0 likes · 4 min read
Cut Java 21 Record Pattern Matching Code in Half
Java Architect Essentials
Java Architect Essentials
May 3, 2023 · Backend Development

JDK 20 Release Highlights: New Features and Improvements

JDK 20, a short‑term support release of Java, introduces seven JEPs—including Scoped Values, Record Patterns, Virtual Threads, Structured Concurrency, and the Vector API—along with numerous enhancements and bug fixes, while remaining production‑ready and paving the way for the upcoming JDK 21 LTS.

Scoped ValuesVirtual Threadsbackend-development
0 likes · 5 min read
JDK 20 Release Highlights: New Features and Improvements
Java Architecture Diary
Java Architecture Diary
Sep 23, 2022 · Fundamentals

What’s New in JDK 19? 7 Preview Features You Should Know

JDK 19 has been released, bringing seven preview‑stage JEPs—including Record Patterns, Linux/RISC‑V support, a Foreign Function & Memory API, Virtual Threads, a fourth‑incubator Vector API, Pattern Matching for switch, and Structured Concurrency—each aimed at enhancing Java’s performance, interoperability, and concurrency capabilities.

JDK 19foreign function APIjava
0 likes · 4 min read
What’s New in JDK 19? 7 Preview Features You Should Know
Programmer DD
Programmer DD
Sep 22, 2022 · Backend Development

What’s New in JDK 19? Explore 7 Preview Features Boosting Java Performance

JDK 19 introduces seven preview JEPs—including Record Patterns, a Linux/RISC‑V port, the Foreign Function & Memory API, Virtual Threads, the Vector API, Pattern Matching for switch, and Structured Concurrency—offering developers powerful new tools to write more efficient, modern Java code.

foreign function APIjdk19preview features
0 likes · 6 min read
What’s New in JDK 19? Explore 7 Preview Features Boosting Java Performance