Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

What is the difference between the do and do-while loop in Java?

1 Answer

0 votes
by (13.1k points)

The while loop executes only after checking the condition. Whereas, a do-while loop executes the loop before checking the condition. A do-while guarantees execution of statement at least once.

Want to learn Java? Check out the Java certification from Intellipaat.

Related questions

0 votes
0 answers
0 votes
2 answers
0 votes
1 answer

Browse Categories

...