Appearance
Module 02 · Controlling Program Flow
This module covers how Java decides what runs next: conditionals, the modern switch (statements and expressions), and the loop family with break/continue. It is exam objective group 2 — small, but dense with traps around fall-through, exhaustiveness, and iteration.
Lessons
| # | Lesson | What it covers |
|---|---|---|
| 01 | Conditionals — if / else | if/else if/else, block scope, braces, the dangling-else trap. |
| 02 | The switch | Statement fall-through, switch expressions (->, yield), exhaustiveness, selector types, case null. |
| 03 | Loops & Branching | while/do-while, classic & enhanced for, labeled break/continue, iteration pitfalls. |
Track your progress
Module Mini-Exam
A timed, mixed quiz covering the whole module. Aim well above the real exam's 68% pass bar.
Mini-Exam
- 8 questions
- 15 minutes
- 10 total points
- Pass: 7 pts (68%)