Multiple choice java

Can a for statement loop indefintely?

  1. Yes

  2. No

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A 'for' statement can loop indefinitely if the termination condition is never met or is omitted entirely. For example, 'for(;;)' is a standard idiom in Java and C-style languages to create an infinite loop that must be exited via a break or return statement.