Tag

Records

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Aug 8, 2024 · Fundamentals

New Features of JDK 17: Text Blocks, Enhanced NPE, Records, Switch Expressions and More

This article introduces the most useful JDK 17 language enhancements—including text blocks, improved NullPointerException messages, records, switch expressions, private interface methods, pattern matching, collection factory methods, new String APIs, Stream API extensions, the modern HttpClient, JShell, direct java file execution, and the Z Garbage Collector—providing code examples and practical guidance for Java developers.

JavaRecordsText Blocks
0 likes · 15 min read
New Features of JDK 17: Text Blocks, Enhanced NPE, Records, Switch Expressions and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 30, 2024 · Fundamentals

Unlock Java 17: Master New JVM and Language Features with Real Code Examples

This article introduces the key enhancements in JDK 17—including improved NullPointerException messages, Metaspace reclamation, new garbage collectors, and language upgrades such as pattern‑matching instanceof, records, sealed classes, switch expressions, and text blocks—accompanied by practical code demonstrations.

JDK 17JavaRecords
0 likes · 10 min read
Unlock Java 17: Master New JVM and Language Features with Real Code Examples
政采云技术
政采云技术
Jan 25, 2024 · Fundamentals

Java JDK 12‑17 New Features and Enhancements Overview

This article provides a comprehensive overview of the major language and runtime enhancements introduced in JDK 12 through JDK 17, covering switch expressions, micro‑benchmarking with JMH, class‑data sharing, garbage‑collector improvements, new String methods, hidden and sealed classes, records, and unified asynchronous logging, all illustrated with code examples.

Garbage CollectionJDKJMH
0 likes · 23 min read
Java JDK 12‑17 New Features and Enhancements Overview
Architecture Digest
Architecture Digest
Aug 23, 2023 · Fundamentals

Key New Features in Java 17: Text Blocks, Records, Switch Expressions, Pattern Matching, Sealed Classes, and Improved NullPointerException

The article reviews the most notable Java 17 language enhancements—including text blocks, records, concise switch expressions, pattern‑matching instanceof, sealed classes, and richer NullPointerException messages—explaining their syntax, benefits, and providing side‑by‑side code comparisons with Java 11.

RecordsSealed ClassesSwitch Expression
0 likes · 9 min read
Key New Features in Java 17: Text Blocks, Records, Switch Expressions, Pattern Matching, Sealed Classes, and Improved NullPointerException
Top Architect
Top Architect
Aug 15, 2021 · Fundamentals

Key New Features in Java 9–16: Private Interface Methods, var, Switch Expressions, Records, Sealed Classes and More

This article reviews the most important Java language enhancements from version 9 through 16, covering private interface methods, diamond operators for anonymous classes, var type inference, improved try‑with‑resources, switch expressions, text blocks, records, refined NullPointerException messages, foreign memory access, sealed classes, and the new jpackage tool.

RecordsSealed ClassesVAR
0 likes · 12 min read
Key New Features in Java 9–16: Private Interface Methods, var, Switch Expressions, Records, Sealed Classes and More
macrozheng
macrozheng
Sep 25, 2020 · Backend Development

Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC

Explore the key Java 15 enhancements—including Text Blocks for effortless multiline strings, Records and local records for concise data models, Pattern Matching for streamlined type checks, Sealed Classes to control inheritance, and the low‑latency ZGC—plus practical IDE tips for using these features effectively.

JDK15JavaRecords
0 likes · 9 min read
Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC
High Availability Architecture
High Availability Architecture
Mar 19, 2020 · Backend Development

New Features in Java 14: Switch Expressions, Pattern Matching for instanceof, Helpful NullPointerExceptions, Records and More

The article introduces the major Java 14 enhancements—including standard switch expressions, preview pattern matching for instanceof, more informative NullPointerExceptions, preview records, text blocks, and several JVM and library improvements—while providing code examples that illustrate how each feature simplifies Java development.

JEPJavaJava 14
0 likes · 6 min read
New Features in Java 14: Switch Expressions, Pattern Matching for instanceof, Helpful NullPointerExceptions, Records and More