Infinite while loop in Java

Java Programming Java8Object Oriented ProgrammingJava Technologies

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

while(true);
raja
Updated on 27-Feb-2020 05:25:01

Advertisements