Assume that the following code fragment is inside of a program that compiles successfully. What does the

Question:

Assume that the following code fragment is inside of a program that compiles successfully. What does the code fragment print? This is a trick question. Study the code carefully.

int x = 1; while (x < 4); { } System.out.println(x); x++;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: