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
Published on 18-Feb-2018 08:25:57
Advertisements