Home » JAVA Programming » Loop Control » Question
  1. What is true about do statement?
    1. do statement executes the code more than once always
    2. do statement executes the code of a loop at least once
    3. do statement does not get execute if condition is not matched in the first iteration
    4. do statement checks the condition at the beginning of the loop
    5. None of these
Correct Option: B

Do statement checks the condition at the end of the loop. Hence, code gets executed at least once.



Your comments will be displayed only after manual approval.