Java 21 is the first Java release with all essential pattern matching features finalized: sealed types and type patterns in an improved switch; also final (and very helpful) are records and record patterns.
I’m envious of people who can use modern Java. We’re still on the #roadto11 from Java 8. It’s good though that newer versions are incremental. The path to upgrades should be simpler.