A

Admin • 830.13K Points
Coach

Q. Which loop condition will cause the loop to terminate immediately?
while(?)

  • (A) true
  • (B) false
  • (C) i > 0
  • (D) i == 1
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
while(false) means the loop won’t execute at all.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.