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.
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++;
Step by Step Solution
3.39 Rating (171 Votes )
There are 3 Steps involved in it
Execute... View full answer
Get step-by-step solutions from verified subject matter experts
