Throw, Don’t Catch? Java Exceptions: Basics and Detailed Mechanics
summary
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
chapters (11)
- 0:00Introduction
- 3:12How JVM exceptions work
- 9:08Java exception optimizations
- 19:27Optimization examples
- 26:52Exception creation speed
- 31:10OutOfMemoryError and StackOverflowError
- 37:48StackOverflowError in locks
- 41:02InterruptedException and cooperative interruption
- 45:15Uncaught exceptions
- 46:39Error messages and tips
- 48:03Summary
related talks
52mCatch Me If You Can - Best Practices with Java Exceptions
32mSecrets of Java - What the Tutorials Don't Tell You
44mA Hitchhiker's Guide to the Functional Exception Handling in Java
56mJava Sucks (So C# Didn't Have To)
50mHandling exceptions, the functional way
53mInteractive session
28m11 Crazy Things I Didn't Know You Could Do With Java Until I Got...
48mDo You Use the Optional Class as It Should Be
