News

Think you've nailed the basics of Java pattern matching? Keep learning with these Java pattern matching examples involving records, inferred types and generics.
JEP 441, Pattern Matching for the switch, is completed in JDK 21, following four previews in JDKs 17-20 (JEPs 406, 420, 427, 433). It finalizes the feature, addressing feedback from previews, and ...
Java 12 arrives with switch expressions to improve coding and allow pattern matching, and raw string literals to simplify multiline expressions The production release of Java Development Kit 12 ...
Similar to Kotlin’s when, Java’s switch expressions do not require break statements, and they can be used as statements or expressions. See “Loop, switch, or take a break?
What's new in the Java 17 long-term support release? Here are five new Java 17 features that developers who were stuck on Java 11 will love.