what is the difference between while and do while statement job java interview

3,013 views · Published 29 November 2012 · 1:50 · Indexed 6 October 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. You can submit your resume for right Job

http://www.interviewdot.com/upload-resume/uploadresume.htm
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

Welcome to www.InterviewDot.com
Java interview "What is the difference between while statement and do while statement " ? Java Interview Question and Answer :

What is the difference between a while statement and a do while statement ? 

A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do while statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do while statement will always execute the body of a loop at least once.

While(condition){
.....
}


do{
.....   // Remember at least once body is executed..
}while(condition);


You can submit your resume for right Job

http://www.interviewdot.com/upload-resume/uploadresume.htm
http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

More from this channel