Overview of Expressions-Control Flow Statements
<aside>
<img src="/icons/table_red.svg" alt="/icons/table_red.svg" width="40px" /> Table of Contents
</aside>
<aside>
💡
- Java If-else
</aside>
<aside>
💡
- Java Switch
</aside>
<aside>
💡
- Java For Loop
</aside>
<aside>
💡
- Java While Loop
</aside>
<aside>
💡
- Java Do While Loop
</aside>
<aside>
💡
- Java Break
</aside>
<aside>
💡
- Java Continue
</aside>
Java Control Statements | Control Flow in Java
-
Java Control Statements | Control Flow in Java
- Java compiler executes the code from top to bottom. The statements in the code are executed according to the order in which they appear. However, Java provides statements that can be used to control the flow of Java code. Such statements are called control flow statements. It is one of the fundamental features of Java, which provides a smooth flow of program.
- Java provides three types of control flow statements.
- Decision Making statements
- if statements
- switch statement
- Loop statements
- do while loop
- while loop
- for loop
- for-each loop
- Jump statements
- break statement
- continue statement