Tag

Sealed Classes

0 views collected around this technical thread.

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
JD Retail Technology
JD Retail Technology
Oct 19, 2023 · Fundamentals

Java Naming Conventions, Code Comments, and Advanced Language Features

This article explores the trade‑offs between efficiency, readability and maintainability in software development, presents common naming conventions and best‑practice guidelines for Java, discusses proper use of comments, and introduces advanced language constructs such as records, sealed classes and the upcoming Valhalla project.

CommentsImmutable ObjectsJava
0 likes · 29 min read
Java Naming Conventions, Code Comments, and Advanced Language Features
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
Selected Java Interview Questions
Selected Java Interview Questions
Dec 23, 2020 · Backend Development

New Features in Java 16: A Comprehensive Overview

Java 16, scheduled for release in March 2021, introduces a range of enhancements such as sealed classes, stronger encapsulation, foreign‑memory access, pattern matching for instanceof, a new jpackage tool, ZGC improvements, Unix‑domain sockets, and expanded platform support, all aimed at improving security, performance, and developer productivity.

JDK 16JavaPattern Matching
0 likes · 8 min read
New Features in Java 16: A Comprehensive Overview
Top Architect
Top Architect
Dec 23, 2020 · Backend Development

New Features in JDK 16: Overview of Upcoming Java Enhancements

The article outlines the upcoming JDK 16 release, detailing new language and JVM features such as sealed classes, stronger encapsulation, foreign‑memory access, pattern matching for instanceof, Unix‑domain socket channels, ZGC improvements, jpackage support, and platform migrations to Windows/AArch64 and Alpine Linux.

JDK16JavaPattern Matching
0 likes · 7 min read
New Features in JDK 16: Overview of Upcoming Java Enhancements
Java Captain
Java Captain
Oct 27, 2020 · Fundamentals

Understanding Sealed Classes in Java JDK 15

This article explains Java JDK 15’s sealed class feature, showing how to declare sealed classes, the required permits clause, and the necessary final, sealed, or non‑sealed modifiers for subclasses, illustrated with complete code examples.

JDK15JavaSealed Classes
0 likes · 3 min read
Understanding Sealed Classes in Java JDK 15
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.

JDK15JavaPattern Matching
0 likes · 9 min read
Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC