~/talk

Java 16 Language Features

Talkat Devnexus 2021 · 2021-02-17..02-18· [java]
github:malagupta
slides:none on file

Covers Java 16 previews with live IDE demos using IntelliJ IDEA 2020.1 and JDK 16: shows sealed classes with permits clauses and the three modifiers (sealed, non‑sealed, final), explains how sealing enables declared hierarchies and hints at future exhaustiveness with pattern matching; demonstrates pattern matching for instanceof to eliminate manual casts and narrow variable scope; shows records replace explicit constructor/getters/toString/hashCode/equals with one-line declarations and proves records resist reflection changes (throws IllegalAccessException), plus generic and local record examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Java Release Cadence
  3. 3:14Java 16 Release Notes
  4. 4:11cltypes
  5. 5:06IntelliJ IDEA
  6. 6:00Hierarchy of Classes
  7. 9:37NonSealed Classes
  8. 13:09C Classes
  9. 16:35Pattern Matching
  10. 22:13Records
  11. 23:14Demo
  12. 31:09immutable records
~/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.