Java if else statement If else statement is a conditional statement that executes a block of code once the condition is true otherwise executes else block if the condition becomes false. Syntax : if (condition) { // code to execute } else { // code to execute } Example : public class conditionalProg { public static void main(String args[]) { /* declaration and ...