问题:
public class WhileFoo {
public static void main (String []args) {
int x= 1, y = 6;
while (y--) {x--;}
system.out.printIn(“x=” + x “y =” + y);
}
}
What is the result?()
A . The output is x = 6 y = 0
B . The output is x = 7 y = 0
C . The output is x = 6 y = -1
D . The output is x = 7 y = -1
E . Compilation will fail.
public class WhileFoo {
public static void main (String []args) {
int x= 1, y = 6;
while (y--) {x--;}
system.out.printIn(“x=” + x “y =” + y);
}
}
What is the result?()
● 参考解析
本题暂无解析
相关内容
相关标签