dcsimg
November 18, 2018
Hot Topics:

Switch Expressions Coming to JDK 12

  • August 29, 2018
  • 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






Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

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

Sitemap

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