Tagged articles
3 articles
Page 1 of 1
DaTaobao Tech
DaTaobao Tech
Jan 6, 2025 · Backend Development

Java 21 LTS Features Overview and Practical Guide

This article walks readers through upgrading from Java 11 to the Java 21 LTS by explaining the six‑month release cadence, JEP process, and SDKman setup, then demonstrates practical code examples for twelve new features—including preview Unnamed Classes, String Templates, Scoped Values, Structured Concurrency, Vector API, Virtual Threads, and Generational ZGC—highlighting their motivations, benefits, and production considerations.

JDK LTSJVMJava 21
0 likes · 16 min read
Java 21 LTS Features Overview and Practical Guide
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 3, 2023 · Fundamentals

Master Java 21 Template Expressions for Clean String Interpolation

This article introduces Java 21's new Template Expressions, explains how STR and FMT processors enable safe, efficient string interpolation and formatting—including multi‑line strings, arithmetic, method calls, and object fields—while providing practical code examples and best‑practice guidance.

Java 21String InterpolationString Templates
0 likes · 8 min read
Master Java 21 Template Expressions for Clean String Interpolation