Examveda
Examveda

In Java, which loop is used when you want to execute a block of code as long as a condition is true?

A. for loop

B. while loop

C. switch loop

D. do-while loop

Answer: Option B


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Related Questions on Flow Control