Essay
The following code compiled, but while running it the program appears to hang (e.g. nothing happens). This is a clear sign of an infinite loop. What part of this code fragment caused the infinite loop?
while(i < 50); {
System.out.println(i);
i+=2;
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: What happens if a case in a
Q2: In a nested if statement an else
Q4: Which of the following is not a
Q5: Every if statement requires an associated else
Q6: Write a do loop that verifies that
Q7: Write a switch statement that switches on
Q8: Write a short code fragment that uses
Q9: The _ statement causes execution of a
Q10: Which of the following statements best describes
Q11: Write a snippet of code that determines