📄️ Control flow in Java
- Control flow determines the order in which statements and instructions are executed in a program.
📄️ If Statement in Java
- An if statement in Java is a control flow statement that allows your program to execute a certain block of code only if a specified condition is true.
📄️ If-else Statement in Java
- An if-else statement extends the basic if statement to provide an alternative block of code to execute when the condition is false.
📄️ If-else-if Ladder Statement in Java
- An if-else if ladder is a series of if and else if statements that allows you to check multiple conditions.
📄️ Switch Statement in Java
- A switch statement in Java is used to simplify the selection among multiple possible paths.
📄️ For Loop in Java
- A for loop is used to iterate over a block of code a specific number of times.
📄️ While Loop in Java
- A while loop is used to repeatedly execute a block of code as long as a specified condition is true.
📄️ Do-while Loop in Java
- A do-while loop is used to execute a block of code at least once and then repeatedly as long as a specified condition is true.
📄️ Break Statement in Java
- The break statement is used to terminate the innermost loop or switch statement immediately and transfer control to the statement immediately following the terminated loop or switch.
📄️ Continue Statement in Java
- The continue statement is used to skip the current iteration of a loop and continue with the next iteration.