Java infinite do-while loop

Java Programming Java8Object Oriented ProgrammingJava Technologies

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

do{} while(true);
raja
Updated on 30-Jul-2019 22:30:21

Advertisements