Control flow statements in Java are used to control the flow of execution of a program.
They allow you to decide which statements to execute, and in what order. There are three main types of
control flow statements in Java:
Decision-making statements: These statements allow you to make decisions about which statements to execute based on the value of a condition. The most common decision-making statements in Java are the if statement, the if-else statement, and the switch statement.
Looping statements: These statements allow you to repeat a block of statements a specified number of times, or until a certain condition is met. The most common looping statements in Java are the while loop, the do-while loop, and the for loop.
Jump statements: These statements allow you to jump to a different part of the program. The most common jump statements in Java are the break statement, the continue statement, and the return statement.