In this repository, you can find some examples of new JDK features:
- new instanceOf
- Local variable type inference
- Descriptive NullPointerException
- New switch statement
- The of() method for collection framework
- The record type
- Sealed classes
- Text blocks
- Pattern matching for switch statement
- Pattern matching for record type
- Scoped values
- Sequenced collections
- String templates
- structured concurrency
- Unnamed classes and main method
- Unnamed variables
- Virtual threads
JDK 22:
- Stream Gatherers (JEP-461) for Enhanced Java Stream Operations
Please, Don't forget to STAR the repository. Thank you!