Java for Testers #8 – How to use IF ELSE in Java

In this Java for Testers tutorial, we will learn how to use IF ELSE in Java. IF statement in Java tells the program to execute a certain section of code only if the specified condition is evaluated to TRUE. It is the most basic of all the control flow statements available in Java.

IF ELSE statement provides an additional path of execution in case the “IF” clause is evaluated to FALSE. Watch the full tutorial to understand the IF ELSE statement in detail.