News

The simplest of Java’s decision statements is the if statement, which evaluates a Boolean expression and executes another statement when this expression evaluates to true.
The Java if statement is used to test the condition. It checks boolean condition: true or false. There are various types of if statement in java.