09.1 Control Flow
Java, like any other programming language, supports both conditional and loop statements to control code flow. 9.1 | Conditional Statements In Java, we have four conditional statements: 1. if(condition=true){}: Execute a set of code when the specified condition is true. 2. if(condition=true){}else{}: Execute first block of code when the specified condition is true else executes the second block of code. 3. if(condition1=true){}elseif{condition2=true}{}else{}: Execute the first block of code for which the condition is true. If no condition is found true and else block exists, then this block of code is executed. If no condition is found true and…