Syntax error Infinite while loop in Java

Infinite while loop in Java



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

while(true);
Updated on: 2020-02-27T05:25:01+05:30

576 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements