Java 17

Get up to speed on Java 17 with our top tips.

IntelliJ IDEA always supports the most recent version of Java. If you want to see the new features that are most interesting to Java developers, and see how IntelliJ IDEA helps us to use these features, these tips are a great place to start.

IntelliJ IDEA's Inspections will show you how to the new Java 17 functionality such as Sealed Classes and Pattern Matching for switch.

Create a correct child Sealed Class

Sealed types are a new idea for Java developers, let IntelliJ IDEA guide you in how to create child classes

Sealed classes (first preview feature in Java 16) are a way to take control of the inheritance hierarchy of our classes. IntelliJ IDEA can let us know about problems in the classes that extend sealed classes, and suggest solutions.

Experiment with Sealed Types, use Alt+Enter (Windows/Linux) to see and accept suggestions.