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

问题:

[单选]

public class ForBar {  
public static void main(String args) {  
int i = 0, j = 5;  
tp: for (;;) {  
i ++;  
for(;;)  
if(i > --j) break tp;  
}  
system.out.printIn(“i = ” + i + “, j = “+ j);  
}  
}  
What is the result? () 

A .  The program runs and prints “i=1, j=0”
B .  The program runs and prints “i=1, j=4”
C .  The program runs and prints “i=3, j=4”
D .  The program runs and prints “i=3, j=0”
E .  An error at line 4 causes compilation to fail.
F .  An error at line 7 causes compilation to fail.

属于建设性冲突的观点有()。 大家以争论问题为中心。 双方对实现共同目标的关心。 双方对赢得自己观点胜利十分关心。 由问题的争论转为人身攻击。 三相异步电动机转子的转速在无外力的情况下总是。() 与旋转磁场转速无关。 与旋转磁场转速相同。 小于旋转磁场转速。 大于旋转磁场转速。 传闻证据规则最早产生于法国。 ()实施前,项目总工程师或技术负责人必须会同技术主管人员向作业队进行交底,并对交底后的实施情况进行检查验收。 A.分部工程 。 B.分项工程 。 C.关键工序 。 D.专项方案。 下列哪项不属于个人财务信息()  资产负债状况。  投资偏好。  风险管理信息。  社会保障信息。

public class ForBar {  
public static void main(String args) {  
int i = 0, j = 5;  
tp: for (;;) {  
i ++;  
for(;;)  
if(i > --j) break tp;  
}  
system.out.printIn(“i = ” + i + “, j = “+ j);  
}  
}  
What is the result? () 

参考答案:

  参考解析

本题暂无解析

在线 客服