Jun
17,
2019
Java 12 Tutorial: How the new switch expressions work
The switch case expressions in Java go back pretty much to the beginnings of the programming language. It was basically a compromise in language design to make it easier for C++ developers to switch to Java. Relics like break and fall-through were not very intuitive and caused a lot of errors. In addition, the case statement was very limited regarding the notation of the values. Fortunately, this all changes with Java 12. The syntax has been slightly modified to allow specifying one expression and multiple values. In this way, case differences can be formulated much more elegantly.
Sep
3,
2018
Java 11: nice refinements, but no killer feature
How difficult is it to upgrade? Martin Thompson shares some of his thoughts about the importance of library support, his favorite Java 11 feature, and his feelings on ZGC.