Sealed classes and interfaces have been previewed again in JDK 16, initially added to the Java language in JDK 15. Sealed classes and interfaces restrict which other classes or interfaces may extend or implement them. For further details, see [JEP 397](https://openjdk.java.net/jeps/397).