The Amazing Features of Modern Java
summary
Recent Java work moves from Java 8 and modules to a six‑month release train, letting big items finish (type inference took ~5 years, Project Loom ~12 years) and land when ready. Concrete features shown: switch expression with yield removes break errors and enables pattern matching; text blocks are compiler syntax sugar (bytecode still LDC strings) for multi‑line strings; records as data classes give immutable tuples with generated ctor/equals/hashCode/toString; sealed hierarchies plus permits enforce closed families; pattern matching with instanceof removes manual casting. Live coding demonstrates all compile and behave as described.
AI-written summary · about
chapters (6)
- 0:00Evolution of Java releases
- 4:33Switch expressions
- 12:20Text blocks in Java
- 23:39Java records
- 40:31Sealed classes
- 50:31Pattern matching
related talks
55mA Few New Cool Features in Modern Java
25mThe New Excitement Around the Good Old Java
32mGetting the Most from Modern Java
57mThe New ExcitementAround Good Old Java
41mThis Ain’t Your Parents’ Java
50mKeeping up with Java: Look at All These New Features!
52mJava Language Futures
36mWhy New Java is Not the New COBOL
