While Loop Termination Condition
Consider the following code segment, where x, y, and z are int variables.
while ((x > y) || y >= z)
{
System.out.print("*");
}
Which of the following Boolean expressions must be true after the loop terminates?
A
x > y || y >= z
B
x <= y && y < z
C
x <= y || y > z
D
x < y && y <= z
Question Leaderboard
Not enough data yet to show leaderboard.
