Preparing for the Java Cert and Learning New Features (Part 2)
summary
Covers concrete Java 12–17 changes with examples that matter: text blocks show backslash-s to force trailing spaces, line-continuation backslash, and strip/indent behavior that changes final newline counting; switch expressions use arrow labels, require exhaustiveness for enums, and return with yield (numeric switches need a default); pattern matching with instanceof introduces flow-scope and duplicate-name pitfalls; records auto-generate accessors/equals/hashCode but can be mutated via contained Lists unless fixed with compact constructor copies; sealed types require permitted subclasses and compile together.
AI-written summary · about
chapters (7)
- 0:00Introduction and overview
- 0:24Text blocks deep dive
- 13:10Switch expressions explained
- 23:12Pattern matching with instance of
- 35:05Records and immutability
- 44:08Sealed classes and interfaces
- 55:06Book giveaway and closing
related talks
42mPreparing for the Java 21 Certification (or Learning New Features)
32mGetting the Most from Modern Java
55mA Few New Cool Features in Modern Java
24mWhat's New in Java - a Language Perspective!
51m#JavaNext Language Features
01h 11mModern Java: This is not your father's Java anymore
50mTo Java 20 and Beyond
51mTo Java 18 and Beyond!
