News

Allowing developers to handle an exception from the selector in switch with a case in the switch block would make switch more usable for pattern matching, the proposal says.
Java SE 14 (March 2020) introduced a limited form of pattern matching as a preview feature, which becomes a permanent feature in Java SE 16 (March 2021).
Two OpenJDK draft proposals would enhance the expressiveness of pattern matching in Java and boost data-oriented queries, potentially previewing in Java 17.