To avoid an infinite loop, the condition within the ________ loop must eventually be false.

  • infinite
  • inner
  • nested
  • outer
To prevent an infinite loop in Java, the condition within the outer loop must eventually evaluate to false. An infinite loop occurs when the loop condition is always true, and the loop keeps executing indefinitely. The other options are not directly related to the prevention of infinite loops.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *