~/talk

Sailing Java 16

Talkat 4Developers 2021 · 2021-05-24..05-27· [java]
slides:none on file

Java 16 shows concrete changes: pattern matching with instanceof removes repetitive casts and creates scoped local bindings (JEP 394), records as named tuples generate private final fields, accessors, canonical constructor, equals/hashCode/toString and can be local types (JEP 395), and sealed classes (preview) let a type list permitted heirs to restrict inheritance (JEP 397). JDK now illegal-access=deny by default (strongly encapsulate JDK internals, JEP 396) so setAccessible calls break unless code adds opens or migrates; value-based classes warn constructors for removal; demos run with a few failing live examples.

AI-written summary · about

  1. 0:00Introduction to Java 16
  2. 5:45Strongly encapsulating JDK internals
  3. 13:17Pattern matching with instanceof
  4. 18:18Sealed classes introduction
  5. 24:14Warnings for value-based classes
  6. 30:31Records deep dive
  7. 38:43Q&A and closing remarks
~/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.