JDK 12 has introduced some much needed change to the switch statement. Our good old switch statement is being re-vamped and can now also be used as an expression. Learn how its new design eliminates common irritants, packs succinct syntax and provides exhaustive case coverage … Continue reading “JDK 12 Switch Expression – Preview Feature”
Does the Java Optional Class finally rid us of NullPointerExceptions? I’ll demonstrate how when Optional is used correctly and when combined with Java’s functional style of programming, that this is indeed possible.