~/talk

Java Puzzlers, Strange Loop Edition

Talkat Strange Loop 2013 · 2013-09-18..09-20· [java]
name:Bob Lee
links:none on file
links:none on file
slides:none on file

Forty-five minutes of five concrete Java puzzlers with working code, surprising outputs and fixes: a hash table contains looks at values not keys bug that makes the program print 0, a serialization proxy that throws ClassCastException unless the proxy is static nested (fails with circular refs), enum class‑init circularity that produces a null and a NullPointerException, a var‑arg/Double.MIN_VALUE pitfall that prints 4.9e‑324, and hex literal/short quirks; each puzzle shows the failing program, the exception or wrong number, and the minimal fix.

AI-written summary · about

  1. 0:00Start
  2. 1:03First Among Equalis
  3. 32:55Mad Max
  4. 38:43Conclusion
~/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.