In our previous tutorial, we discussed various control statements like If-Else & Switch Statement in Java. Today we are going to discuss control flow statements like different types of loops in Java for example For, For Each, While and Do-While loop. Let me remind you Control statements & Control flow statements are the basic building block of the programming language and your testing logic.