Program Control Statements
Decision Constructs Java supports two selection statements: if and switch. These statements allow you to control the flow of your program’s execution based upon conditions known only during run time. The if-else Statement The if statement is Java’s conditional branch statement. It…