This article explains about different control statement available in java with examples.
a) IF statementb) IF-Else statement