News

Basic pattern matching features (like enhanced instanceof) are available from Java 16 onward, while more advanced capabilities (like record patterns and guarded patterns) came up in Java 21.