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.
However, when Java introduces the new pattern matching for switch syntax, it becomes possible to integrate a null check within the switch statement by allowing a new null case label. This enhancement ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results