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

InheritanceJDK15Java
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.

JDK15JavaSealed Classes
0 likes · 9 min read
Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC
FunTester
FunTester
Jun 28, 2020 · Fundamentals

Master Java Text Blocks: Simplify Multiline Strings in JDK 13‑15

This article explains Java's Text Block feature (JEP 355), showing how it turns cumbersome, escape‑heavy multiline strings into clean, readable literals, details its processing steps, new escape sequences, and how to control indentation with the indent() method.

JDK13JDK15Java
0 likes · 5 min read
Master Java Text Blocks: Simplify Multiline Strings in JDK 13‑15