~/talk

Preparing for the Java 21 Cert and Learning New Features

Talkat Devnexus 2024 · 2024-04-09..04-11· [java]
speakerdeck:boyarsky
slides:none on file

Java 21 adds virtual threads (lightweight, run on platform threads and scale to thousands), makes ExecutorService AutoCloseable so try-with-resources calls shutdown (not shutdownNow) and waits for tasks, and finalizes pattern matching: pattern matching for switch and record patterns (guarded cases, nested record deconstruction, switch expressions). Sequence collections give predictable order, UTF‑8 becomes default charset, StringBuilder.repeat and ranged indexOf appear, finalization is deprecated for removal, and javadoc gains code snippets. Certification for Java 21 is pending.

AI-written summary · about

  1. 0:00Introduction and disclaimers
  2. 1:03Java 21 cert exam overview
  3. 2:48Virtual threads explained
  4. 8:47AutoCloseable ExecutorService
  5. 14:07Pattern matching for switch
  6. 26:46Record patterns deep dive
  7. 35:23Sequence collections update
  8. 37:10Other Java 21 features
  9. 39:00Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.