~/talk

Generics - You Never Know What You're Gonna Get

Talkat Voxxed Days Amsterdam 2026 · 2026-04-01..04-02· [java]
links:none on file
slides:none on file

Shows that Java generics are a compile‑time illusion: JVM erases generics so T becomes Object and primitive type arguments fail (List<byte>). Demonstrates wild‑card capture of ? errors, why add(capture of ? extends A) is rejected, and how producer extends / consumer super controls read vs write. Builds small Box<T>/Candy model, compiles and runs examples, and exposes the surprise that arrays are covariant at runtime and can throw ClassCastException.

AI-written summary · about

  1. 0:00Introduction to generics
  2. 2:00Understanding type erasure
  3. 3:47Implications of type erasure
  4. 7:02Generics subtyping rules
  5. 10:14Covariance and producers
  6. 11:50Contravariance and consumers
  7. 13:08Arrays and type safety
  8. 14:13Summary and conclusion
~/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.