Java has three types of loops i.e. the for loop, the while loop, and the do-while loop. for and while loops are entry-controlled loops whereas do-while loop is an exit-controlled loop.
Sandhya Answered question September 7, 2023
Not a member yet? Register now
Are you a member? Login now