Index
- NullPointerException message enhancement
- Null allowed in switch
- Switch expression enhancement
- switch can come with arrow sign -> which returns a value and
- use of keyword yield to return default value in default section
- multiple cases can be separated by comma
- Sealed classes
- Only permitted class can inherit
- Record class
- reduced boilerplate,
- immutable and final class – they are not extensible.
- No setters
- temporarily hold immutable data i.e traditional POJO