JEP Pattern Matching for switch and Records planned for final release in Java 21

Enhance the Java programming language with pattern matching for switch
expressions and statements. Extending pattern matching to switch allows an
expression to be tested against a number of patterns, each with a specific
action, so that complex data-orien… Read more

Similar

Java Priority Queue

Java.util package provides a PriorityQueue class where an unbounded priority queue based on a priority heap. The elements of the priority queue are ordered according to their natural ordering, or by a Comparator provided at queue construction time, depend... (more…)

Read more »