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 ...