title: Infinite while loop assistance
body: <p>I am learning Network Programming in Java Core. Here is something I can't understand. Take a look at this snippet</p>
  
  <p><a href="https://i.stack.imgur.com/YIQmM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YIQmM.png" alt="enter image description here"></a></p>
  
  <p>This loop seems infinite. But I sure know it could stop (not by exiting the program)</p>
  
  <p>My question is which situations this loop would stop in the case of no existing program. I doubt there would be a statement in this loop body that raises an exception or somehow one of the statements inside the loop body generates a BREAK statement. How can i get this while loop to exit?</p>