A condition checking statement helps to execute a statement or block of statement based on certain condition The execution of the statement or statements in a conditional statement is based on the weather the condition is true or false.
The condition checking statements present in java are the following.
1. simple if .
2. if else.
3. if else if.
6. switch case
A loop statement helps the repeated execution of a statement/statements based on a condition. Java support most of the looping statements. The loop statements available in java are given bellow.
1. while loop
2. do while loop
3. for loop
4. for each loop
A loop statement helps the repeated execution of a statement/statements based on a condition. Java support most of the looping statements. The loop statements available in java are given bellow.
1. while loop
2. do while loop
3. for loop
4. for each loop
Comments
Post a Comment