Tag: java17

  • Java 17 features every Java developer should know

    Java 17 released today ( 14 September 2021). Though there are around 14 new features introduced in this release , only two of them directly help developers and they should be aware of these. Those two are : Pattern Matching for Switch Sealed Classess Pattern Matching for Switch is introduced as a preview feature and…

  • Sealed classes and interfaces in Java

    Let’s say you are creating a base class and you want it be extended by other developers to reuse the code. Say you developed a base class named Animal and you want to allow another developer to create a Cat class which can extend this base class. So you made the base class as public…