Control Statements in Java
Last updated: 28 Sep 2026
Control statements decide which code runs and how many times. There are three groups:
- Decision making:
if,if-else,switch - Loops:
for,while,do-while - Jump:
break,continue,return
Last updated: 28 Sep 2026
Control statements decide which code runs and how many times. There are three groups:
if, if-else, switchfor, while, do-whilebreak, continue, return