Infinite while loop in Java



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

while(true);

Advertisements