The control statements, as the name suggests controls the flow of the program. Depending upon the state ( values of variables, user input etc ) the appropriate code is executed.
Control Statements are divided into three types those are Selection Statements, Iteration statements and Jump Statements.
Java supports two selection statements - if and switch. These statements allow us to control the flow of the program. Depending upon the expressions or values, the corresponding blocks/statements of code will be executed or by passed.
To lean more read this topic To learn more about Selection Statements In Java read this topic Selection Statements In Java
Java's Iteration statements are for, while and do-while. These statements are commonly called as loops. A loop repeatedly executes the same set of instructions until a termination condition is met.
To learn more about Iteration Statements Or Loops In Java read this topic Iteration Statements Or Loops In Java.
Java supports three jump statements: break, continue, and return. These statements transfer control to another part of your program.
To learn more about Jump Statements In Java read this topic Jump Statements In Java