Objects, Immutability, Switch Expressions, and Pattern Matching
This chapter includes 30 problems, tackling, among others, some less-known features of java.util.Objects, some interesting aspects of immutability, the newest features of switch expressions, and deep coverage of the cool pattern matching capabilities of instanceof and switch expressions.
At the end of this chapter, you’ll be up to date with all these topics, which are non-optional in any Java developer’s arsenal.