1Z0-830 Java 21 Exceptions and Try-with-Resources Guide
April 13, 2026
Study 1Z0-830 Java 21 Exceptions and Try-with-Resources: key concepts, common traps, and exam decision cues.
On this page
Exception questions stop being difficult when you treat them as rule questions first. The exam wants correct legality and cleanup reasoning before anything else.
Exception-choice map
If the stem is mainly about…
Better first instinct
mandatory handling
decide whether the exception is checked
multiple catch blocks
test reachability from specific to general
cleanup
use try-with-resources when AutoCloseable is involved
API design
decide whether the failure should be enforced or runtime-signaled
What the exam is really testing
If the code shows…
Strong reading
broad catch before narrow catch
compile-time reachability issue
resource declaration in try (...)
automatic closing behavior matters
custom exception type
checked-vs-unchecked intent is likely the point
Common traps
Trap
Better rule
following runtime flow before checking catch legality
compilation may fail first
forgetting resource cleanup order
try-with-resources closes in reverse declaration order