Java infinite do-while loop


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

do{} while(true);

Updated on: 30-Jul-2019

443 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements