Java | If - Else Statement: If - else statement is one of the conditional statement. if checks the condition, if condition is true if block executes otherwise else block executes. Syntax: if ( condition ) { // statements... } else { ...