A

Admin • 828.43K Points
Coach

Q. Which loop is most suitable for indefinite iteration until a condition is met?

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

Explanation by: Admin
while loop is preferred when the number of iterations is unknown.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.