What is the do-while control statement?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the do-while control statement?
Rating:
The do-while control statement is executed at least once, as the while conditional expression is at the bottom. The syntax of the do-while statement is as follows:
//body of loop
} while(condition);
In each iteration, the do-while loop first executes the body of the do loop and then checks the while condition. If the condition is true, then the loop repeats, else, it terminates.
Rating:
Was this information helpful?
Other articles
- What is the String + operator?
- What is the for loop?
- What is RMI?
- What is the executeQuery() method?
- What is the not equal to operator?