1.7 Statement
if (Expression) {Statement} else {Statement}
In this statement the expression should have a boolean type. It is evaluated first. If the expression evaluates to true, then the first statement (known as the then clause) is evaluated. If the expression evaluates to false, the statement following else (the else clause) is evaluated.
This form evaluates the expression, and then returns the value of the expression as the result of the method in which it is contained.