JavaIf statement in java, how to useIf statement is used when we want to check a condition. We check a condition to prevent our program…Pawneshwer GuptaFebruary 16, 2015 1 min