Infinite while loop in Java


Yes. Following while loop is a valid statement and causes an infinite loop.

while(true);

Updated on: 27-Feb-2020

425 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements