Java if and if...else statements.

In this tutorial, you will learn Java if and if...else statements. It executes the if block if condition is true otherwise else block is executed.

Code :