

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the program?
int x = l, y = 6; while (y--) { x++; } System.out.println("x = " + x +" y = " + y); |
A. | X = 6 y = 0 |
B. | X = 7 y = 0 |
C. | X = 6 y = -1 |
D. | Compilation fails. |
Answer» E. | |