Uncovering Project Amber: Changes to the Java Language in v10 & Beyond
summary
Project Amber demos show concrete language changes and working examples using IntelliJ IDEA 2020.2 and Java 15 preview features live coded on screen the presenter defines sealed classes (Java 15) restrict which types can extend and shows a permits clause, demonstrates records generate getters equals hashCode toString and are shallowly immutable by serializing a record to a file after adding Serializable, converts switches to switch expressions that return values without fallthrough, uses pattern matching for instanceof to remove casts, and shows var and var in lambda params with compact examples and fixes during the live demo.
AI-written summary · about
chapters (9)
- 0:00Introduction to Project Amber
- 5:28Sealed types in Java 15
- 12:59Records for data modeling
- 23:10Pattern matching for instanceof
- 29:17Text blocks for multiline strings
- 37:24Switch expressions explained
- 39:14Local variable type inference with var
- 43:37Lambda parameter syntax updates
- 45:25Preview language features overview
related talks
01h 03mProject Amber: Recent Java Language Features
01h 02mJava Project Amber - Not Just a Rare Fossil
41mEvolving Java Project Amber
43mHow Amber is Driving Java’s Evolution
43mJava Language Futures, Spring 2023 Edition
46mWhere is the Java language going?
39mJava 16 Language Features
26mJava Language Futures
