Introduction to Sealed Classes

Learn about fine-grained inheritance control in Java

Image from Pixabay

Sealed classes feature was released in Java 17. However it was already available as a preview feature since Java 15 and revised in Java 16.

Sealed classes can restrict other classes or interfaces from extending or implementing them. In short, this feature allows the author to have a control which code is responsible for implementing…

--

--

Software Architect and developer living in Germany. Sharing my opinion and what I learn.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Swathi Prasad

Software Architect and developer living in Germany. Sharing my opinion and what I learn.