Getting the Most from Modern Java
summary
Walks through concrete Java features since JDK11 and shows how to use them: switch expressions with yield (no fallthrough, comma lists), text blocks with incidental whitespace (three quotes, backslash escapes), records with compact constructors and generated equals/hashCode/toString, pattern matching for instanceof (inline cast variable), sealed classes with permits/non-sealed rules, plus local records used inside streams to rank sellers. Notes which features are preview vs final (records, pattern matching, sealed preview) and when not to adopt them.
AI-written summary · about
chapters (7)
- 0:00Modern Java intro
- 1:57Switch expressions JDK 12
- 9:03Text blocks JDK 13
- 14:15Records JDK 14
- 19:48Pattern matching instanceof
- 24:26Sealed classes JDK 15
- 30:23JDK 16 updates
related talks
55mA Few New Cool Features in Modern Java
02h 41mCruising Along with Java: Benefiting from the Modern Features
01h 02mThe Amazing Features of Modern Java
01h 11mModern Java: This is not your father's Java anymore
56mPreparing for the Java Cert and Learning New Features (Part 2)
01h 03mDiscover Modern Java
50mModern Java Puzzlers
24mWhat's New in Java - a Language Perspective!
