Last Minute Java Control Statements IF, ELSE and ELSE IF Tutorial
A Control statement in Java decides the code to be executed based on a condition. All control statements take the boolean value as an INPUT and branches control accordingly. Usually, the true condition takes control to one branch of code and the false condition takes control to another branch.