Control Flow
if-else Statements
Master conditional branching with if, else-if, and else blocks, including boolean condition evaluations and block scoping.
switch-case
Compare legacy switch statements with modern switch expressions, covering arrows, yield, yield exhaustiveness, and pattern matching.
for Loop
Understand the standard three-part for loop, index control variables, loop condition bounds, and loop execution lifecycle.
while Loop
Explore pre-test loop mechanics, condition evaluations, and sentinel-controlled iteration patterns.
do-while Loop
Examine post-test loops, guaranteeing at least one execution iteration, and scoping behaviors.
Enhanced for Loop
Understand the compiler mechanics of the enhanced for-loop (for-each) for arrays and Iterable collections.
break and continue
Control execution flow using break and continue keywords, exploring early loop termination and iteration skips.
Labeled Statements
Apply labels to loops and blocks to control nested execution redirection via labeled break and continue.
Ternary Operator
Master the conditional expression ternary operator, parsing type promotions and null-safety applications.