© Kishori Sharan 2019
K. SharanJava 13 Revealedhttps://doi.org/10.1007/978-1-4842-5407-3_5

5. Enhanced Switch

Kishori Sharan1 
(1)
Montgomery, AL, USA
 
In this chapter, you will learn
  • What a preview feature is

  • What a switch statement and a switch expression are

  • Enhancements to the traditional switch

  • About the new syntax for switch

  • About the rules of using new switch

  • About the yield statement

What Is a Preview Feature?

A preview feature of the Java SE Platform is a fully specified and fully implemented language or virtual machine feature, which is available in a JDK feature release, but is not a permanent feature of the JDK yet. A preview feature is provided to solicit developer feedback. Developers are expected to experiment with the features in real-world ...

Get Java 13 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.