计算机二级考试

语句"Hell0".equals("hell0");的正确执行结果

2015年04月09日来源:计算机二级考试 所有评论

试题来源:2014年计算机二级JAVA考试精选选择题(8)
【单选题】语句"Hell0".equals("hell0");的正确执行结果
public static void main(String[]args){
int[]x={0,1,2,3}; 
for{int i=0;i<3;1+=2){
try{
systcm.OUt.println(x[i+2]/x[i]+x[i+1]); 
}catch(ArithmeticException e){
System.OUt.println("errorl"): 
}catch(Exception e){
System.OUt.println("error2"): 
}
}
}

A.errorl 
B.error2
C.errorl 
D.2 orror2 error2
网考网参考答案:B
网考网解析:
点击查看解析
大数据分析:根据网考网考试中心的统计分析,该试题:
0%的考友选择了A选项
30%的考友选择了B选项
54%的考友选择了C选项
16%的考友选择了D选项

发布评论 查看全部评论

相关推荐