~/talk

Know Your Java

Talkat Devnexus 2023 · 2023-04-04..04-06· [java]
slides:none on file

Shows precise gotchas and fixes: passing an int to a variable-typed list can call List.remove(int) vs Collection.remove(Object) so elements vanish unexpectedly; Arrays.asList accepts set but not add while List.of produces truly immutable lists; mutating an external collection inside a parallel stream yields nondeterministic sizes so parallel stream + shared mutation = lost or duplicate elements; calling an overridable method from a base constructor triggers null fields and a NullPointerException.

AI-written summary · about

  1. 0:00Introduction to Java pitfalls
  2. 2:52Overloading and type inference
  3. 7:41Immutable collections
  4. 11:57Shared mutability in streams
  5. 21:56Pure functions and laziness
  6. 31:38Stream parallelism mechanics
  7. 39:48Constructor risks and conclusion
~/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.