~/talk

Throw, Don’t Catch? Java Exceptions: Basics and Detailed Mechanics

TalkinRussianat JPoint 2024 · 2024-04-17..04-25· [java]
links:none on file
slides:none on file

Covers Java exceptions: when to catch, log, or wrap them; how to handle InterruptedException and exceptions thrown during logging; and practical libraries and tools (jdoctor, SneakyThrows) that help. Also explains JIT optimizations for certain error cases and how that affects when to use exceptions, with concrete examples and practical stories.

AI-written summary · about

  1. 0:00Introduction
  2. 3:12How JVM exceptions work
  3. 9:08Java exception optimizations
  4. 19:27Optimization examples
  5. 26:52Exception creation speed
  6. 31:10OutOfMemoryError and StackOverflowError
  7. 37:48StackOverflowError in locks
  8. 41:02InterruptedException and cooperative interruption
  9. 45:15Uncaught exceptions
  10. 46:39Error messages and tips
  11. 48:03Summary
~/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.