~/talk

Project Amber: Recent Java Language Features

Talkat DevDotNext 2020 Digital Edition · on Tuesday, 2020-03-24· [java]
slides:none on file

Project Amber delivers concrete language changes: var in Java 10 removes repetitive type declarations and reduces boilerplate; switch expressions in Java 14 use -> labels, return values, and compiler-enforced exhaustiveness; text blocks use triple quotes with NL as the canonical newline and strip incidental indentation; records generate final fields plus equals, hashCode and toString and are shallowly immutable; sealed types add a permits clause to restrict subclasses; preview features require the --enable-preview flag at compile and run time.

AI-written summary · about

  1. 0:00Introduction to Project Amber
  2. 1:49What is Project Amber
  3. 8:19Local variable type inference (var)
  4. 12:14Text blocks for multi-line strings
  5. 17:40Switch expressions explained
  6. 25:30Records as data aggregates
  7. 39:14Sealed types and controlled subclassing
  8. 44:56Pattern matching with instance of
  9. 49:57Future of pattern matching
  10. 53:51Resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.