The following describes selected improvements of the Java language. See the Java 19 release notes. See Java Language Updates for Java SE 19.
Java 19 is introducing the following language enhancements as developer preview.
The following describes selected improvements of the Java language. See the Java 19 release notes. See Java Language Updates for Java SE 19.
Java 19 is introducing the following language enhancements as developer preview.
The following describes selected improvements of the Java language. See the Java 17 release notes. See Java Language Updates for Java SE 17.
With JEP 409 Sealed Classes are now leaving preview state and are finally available for production.
Java 17 is introducing the following language enhancements as developer preview.
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/seventeen/lang/SealedClasses.java[tags=Shape;Ellipsis;Circle;Rectangle]
The new keyword permits
declares which subclasses are allowed.
Subclasses may be sealed
,
final
or,
non-sealed
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/seventeen/lang/SealedClasses.java[tags=Ellipsis;Circle]
The permits
declaration can be omitted when
the subclasses are in the same source file.
The following describes selected improvements of the Java API. See the Java 16 release notes.
Unresolved directive in <stdin> - include::DayPeriodSupport.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::StreamApi.adoc[leveloffset=+1]
The following describes selected improvements of the Java language. See the Java 16 release notes. See Java Language Updates for Java SE 16.
With JEP 394, Pattern Matching for instanceof introduced in {java14} is moving from preview state to final availability.
With JEP 395, Record introduced in {java14} is moving from preview state to final availability.