1Z0-829 Java 17 Selection, Switch, Exceptions and Assertions Guide
April 13, 2026
Study 1Z0-829 Java 17 Selection, Switch, Exceptions and Assertions: key concepts, common traps, and exam decision cues.
Control-flow questions usually look easier than they are. The real issue is often catch legality, switch-expression behavior, or assertion intent.
Flow-choice map
| If the stem is mainly about… |
Better first instinct |
| nested loops |
track scope and exit targets explicitly |
| switch expression |
check exhaustiveness and value-production behavior |
| catch blocks |
test reachability from specific to general |
| try-with-resources |
cleanup and automatic closing are likely the point |
| assertion |
internal correctness checking, not normal business flow |
What the exam is really testing
| If the code shows… |
Strong reading |
yield |
the switch arm is returning a value |
| broad catch before narrow catch |
compile-time reachability issue |
| assertion syntax |
feature intent and failure semantics matter |
Common traps
| Trap |
Better rule |
| following runtime flow before checking exception legality |
compilation may fail first |
| treating switch statement and switch expression as the same tool |
expression form has value and exhaustiveness rules |
| using assertion intuition as public validation logic |
assertions serve internal correctness checks |
Quiz
Loading quiz…
Revised on Sunday, May 10, 2026