do…while Loop It used when there is a need to repeatedly execute a group of statemens as a condition is true. If the condition is false, the repetition will be stopped and the flow of execution comes out of do…while Read More …
while Loop This loop repeats a group of statements as a condition is true. Ones the condition is false, the loop is terminated. Program:
for Loop This loop is more compact syntactically. It executes a group of statement as a condition is true. Programs:
Nested for Loop Write for loop within another for loop. Such loops are called nested loops.
for-each Loop This loop is specifically designed to handle the element of a collection. Collection represent a group of elements.