Package net.jrodolfo.java_evolution.java15
package net.jrodolfo.java_evolution.java15
Examples for features introduced in Java 15.
Java 15 finalized text blocks, previewed sealed classes, and introduced hidden classes for framework and runtime use cases.
For beginner-oriented notes about the problems these features solved, see the package README in the source directory.
-
ClassDescriptionExplains hidden classes, introduced in Java 15.Demonstrates sealed classes as a Java 15 preview feature.Circle implementation permitted by
SealedClassesPreviewExamples.Shape.Rectangle implementation permitted bySealedClassesPreviewExamples.Shape.Sealed parent type that explicitly lists permitted implementations.Demonstrates text blocks, finalized in Java 15.