What is the difference between a while statement and a do while statement?
Answer:
-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 whilestatement will always execute the body of a loop at least once.
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm