The most common Control Statements in Java
Control Statement if and if.. else
The if Statement:
In Java if statement is most widely used. The if
statement is control statement which helps programmers in decision making. The
if statement uses boolean expression in making decision whether a particular
statement would execute or not. This is a control
statement to execute a single statement or a block of code, when the given
condition is true and if it is false then it skips if block and rest code of program is executed.