Java 17 available now

Java 17 LTS is the latest long-term support release for the Java SE platform. JDK 17 binaries are free to use in production and free to redistribute, at no cost, under the Oracle No-Fee Terms and Conditions.

JDK 17 will receive updates under these terms, until at least September 2024.

JDK 17 Documentation

Java Language Updates for Java SE 17

FeatureDescriptionJEP
Sealed ClassesFirst previewed in Java SE 15, this feature is permanent in this release. This means that it can be used in any program compiled for Java SE 17 without enabling preview features.A sealed class or interface restricts which classes or interfaces can extend or implement it.JEP 409: Sealed Classes
Pattern Matching for switch Expressions and StatementsIntroduced as a preview feature for this release.Pattern matching for switch expressions and statements allows an expression to be tested against a number of patterns, each with a specific action, so that complex data-oriented queries can be expressed concisely and safely.JEP 406: Pattern Matching for switch (Preview)

Leave a Reply

Your email address will not be published. Required fields are marked *