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.

Interested in JVM Development?

call to action image

You can create a sealed parent too!

Learn More


Related Resources

Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.
Presenting with IntelliJ IDEA.
Presenting with IntelliJ IDEA.
Tips & tricks to level up your presentation skills with IntelliJ IDEA.
Hello World in IntelliJ IDEA
Hello World in IntelliJ IDEA
Create a new Java application and JAR file that prints `Hello World` to the console.