A

Admin • 828.43K Points
Coach

Q. Which loop is guaranteed to execute at least once in Java?

  • (A) for
  • (B) while
  • (C) do-while
  • (D) foreach
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
do-while loop executes the body first and then checks the condition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.