Multiple choice

Which type of loop in Java executes once, even though the initial condition is false?

  1. While loop

  2. For loop

  3. Do while loop

  4. Iterator

  5. For each loop

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct option because while loop is at the the bottom of the block of code, so the block gets executed atleast one time irrespective of the condition.