This section will show you how switch expressions have enhanced the traditional switch statement, making your code less verbose and thereby avoiding logical errors. The next chapter covers other additions and updates in Java 12.
The following chapters will be covered in this section:
- Chapter 11, Switch Expressions
- Chapter 12, Miscellaneous Improvements in JDK 12