Tag java else syntax

Java Else

The else Statement Use the else statement to specify a block of code to be executed if the condition is false. Syntax if ( condition ) { // block of code to be executed if the condition is true }…