What happens with this code?
<code>int i = 0; while (i < 5) { System.out.println("hi"); } </code></pre>
- A
Compile error
- B
Prints 'hi' once
- Ccheck_circle
Infinite loop (i never changes)
- D
Prints 'hi' 5 times
Explanation
Forgot to increment i; condition stays true forever.