OpenJDK 17 part 1
summary
Covers concrete changes from JDK12–14 with examples and migration notes: licensing now restricts Oracle JDK free use to personal, development, Oracle apps or Oracle Cloud; preview features require --enable-preview at compile and run; records reduce 14 lines to one for simple data carriers (immutable, implicit accessors, compact constructor but no checked throws); switch becomes an expression with comma labels and yield replaces break for returned values; text blocks use triple quotes with incidental whitespace rules and escapes; the teeing collector computes average from sum and count as a real example.
AI-written summary · about
chapters (13)
- 0:00Introduction and setup
- 3:02Java release cadence changes
- 5:09Licensing changes in JDK 11
- 7:17Incubator and preview features
- 10:51JDK 12 switch expressions
- 18:30JDK 12 teeing collector
- 20:35JDK 13 text blocks
- 25:53Switch expression improvements
- 27:39JDK 14 records
- 36:49Record constructors
- 41:26JDK 14 pattern matching
- 47:45Text block updates in JDK 14
- 49:09Break and session wrap-up
