Pattern matching for “instanceof” in JDK16 | The Two Minutes Tuesday 016

The new pattern matching enhancement for the instanceof operator in #Java16 spares you a lot of typing, and makes the code more concise and much easier to understand!

#JDK16 is stable and will be released in March. Time to look into the new PATTERN MATCHING functionality that it brings for the instanceof operator. Turn five complex code lines into a simple single code line, and spare a lot of typing and potential failures! I will show you in this video how amazing modern #Java source code looks like when using this new syntax!


About Markus Karg

Java Guru with +30 years of experience in professional software development. I travelled the whole world of IT, starting from Sinclair's great ZX Spectrum 48K, Commodore's 4040, over S/370, PCs since legendary XT, CP/M, VM/ESA, DOS, Windows (remember 3.1?), OS/2 WARP, Linux to Android and iOS... and still coding is my passion, and Java is my favourite drug!
This entry was posted in Java, Programming, Standards, The Two Minutes Tuesday and tagged , , , , , , , , , , , , . Bookmark the permalink.