What is empty loop in Java
Answers
Answered by
2
It has no initialization statement,
so nothing will be executed.
It's conditional check
statement is also empty,
so which means it evaluates to true.
After that the loop body is executed.
Next, since the update
statement is empty,
nothing is executed.
so nothing will be executed.
It's conditional check
statement is also empty,
so which means it evaluates to true.
After that the loop body is executed.
Next, since the update
statement is empty,
nothing is executed.
anupambaghel150:
Thanks
Similar questions