~/talk

Know Your Java?

Talkat JavaOne 2025 · 2025-03-18..03-20· [java, career-development]
slides:none on file

Concrete surprises and concrete fixes: using remove(int) vs remove(Object) with Integer autoboxing makes the same call remove by index on a List but remove by value when the variable is a Collection, producing [1,3] or [2,3]. var infers concrete type so var numbers = new ArrayList<>(...) yields ArrayList behavior, not a Collection. arraysAsList is fixed-size (add throws, set works); prefer List.of for immutable collections. Stream collectors differ (Collectors.toList mutable vs stream.toList immutable). Parallel streams or lazy streams break code with side effects or externally mutated state.

AI-written summary · about

  1. 0:00Java surprises
  2. 3:18Compiler vs unit tests
  3. 5:07List vs Collection remove
  4. 10:28Type inference dangers
  5. 15:27Functional Programming mistakes
  6. 16:32Arrays.asList pitfalls
  7. 22:54Failing production code
  8. 25:22Stream side effects
  9. 31:28Pure functions in streams
  10. 35:22Lazy evaluation in streams
  11. 39:39Purity and immutability in Java
~/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.