4 August 2023

Java 21 LTS releases september 19th 2023

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

More info...

No comments:

Post a Comment