March 8, 2021
Hot Topics:

Switch Expressions Coming to JDK 12

  • By Developer.com Staff

Java Development Kit (JDK) 11 hasn't yet reached general availability, but the OpenJDK community is already hard at work on JDK 12. That release, due in March 2019, will feature switch expressions.

According to InfoWorld, "Switch expressions, which will be in beta state in JDK 12, extends the switch statement so it can be used as either a statement or an expression. This would enable both forms to use either 'traditional' or 'simplified' scoping and control flow behavior. These changes would result in simplified 'everyday' coding and prepare the way for use of pattern matching in switch."

View article

This article was originally published on August 29, 2018

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date