In Java, there are three kinds of loops which are – the for loop, the while loop, and the do-while loop. All these three loop constructs of Java executes a set of repeated statements as long as a specified condition remains true.
This particular condition is generally known as loop control. For all three loop statements, a true condition is the one that returns a boolean true value and the false condition is the one that returns the boolean false value. While loop

For loop

Elements in a Java Loop
Every loop has its elements or variables that govern its execution. Generally, a loop has four elements that have different purposes which are:
Initialization Expression(s)
Test Expression(Condition)
Update Expression(s)
Body of the loop