State the difference between while and do while loop.
Single Choice
Views 92
Answer:
| while | do-while |
|---|---|
| It is an entry-controlled loop. | It is an exit-controlled loop. |
| It is helpful in situations where numbers of iterations are not known. | It is suitable when we need to display a menu to the user. |
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.