当前位置:SCJP程序员认证考试题库

问题:

[单选]

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服