Java 12 is here!
Java has switched to a 6-month release cycle, which means you don't have to wait 3 years for a major Java upgrade. It also means less and manageable changes in each major release. Java 12 has been released recently. Here is a brief overview of new features. Switch Expressions We all use switch statements, and we know how much it simplifies coding. But still, it required having a break statement after every case expression. As a guy who makes a lot of careless mitsakes, missing break statement after a case is one of the mistakes I make a lot. switch (month) { case 1 : monthStr = "January" ; break ; case 2 : monthStr = "February" ; break ; case 3 : monthStr = "March" ; break ; case 4 : monthStr = "April" ; break ; } Now with switch expressions , the switch block is going to look much cleaner and robust. String monthStr = switch (month) { case 1 -> "Ja