With the upcoming new LTS (Long Term Support) release of Java, Java 21, quite some preview features of earlier releases are finally completed. These are the most important goodies we get withe the new LTS release:
- record pattern matching: destructuring for records
- several switch enhancements
- type and pattern matching
- null matching
- more complex tests using case ... when ... constructs
- SequencedCollection: extra operations on first and last elements for collections for which the order of the elements is known.
- lightweight threads
- text manipulation methods
- String::splitWithDelimitors
- SringBuilder::repeat
- Character eomji methods
No comments:
Post a Comment