Loop statement is used when we need to execute a block of code repeatedly. There are different types of loops in Java. The loop statement is executed repeatedly based on the condition. Through the condition we can control how many times the loop will be executed repeatedly.
1. for loop
2. for each loop
3. while loop
4. do-while loop
In the next chapters, we will learn each loop in details