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

问题:

[单选]

What will be the result of attempting to run the following program?()  
public class Qaa75 {  
public static void main(String args[]) {  
String[][][] arr = {  
{ {}, null },  
{ { "1", "2" }, { "1", null, "3" } },  
{},  
{ { "1", null } }  };  
System.out.println(arr.length + arr[1][2].length); 
 }  
}  

A . The program will terminate with an ArrayIndexOutOfBoundsException.
B . The program will terminate with a NullPointerException.
C . 4 will be written to standard output.
D . 6 will be written to standard output.
E . 7 will be written to standard output.

从体裁上看,《饮酒》(结庐在人境)是()。 五言古诗。 五言律诗。 五言绝句。 乐府诗。 受托人向受益人承担支付信托利益的义务以()为限。 受托人财产。 托管人财产。 委托人财产。 信托财产。 施工合同执行者进行合同跟踪的依据有()。 合同订立前签署的意向书。 合同实施中出现的偏差情况。 合同以及依据合同而编制的各种计划文件。 管理人员对现场巡视、质量检查的情况。 原始记录、报表、验收报告等各种实际工程文件。 热交换器输出的热水温度是一定的,一般为()。 85度~95度。 25度~35度。 45度~55度。 60度~65度。 下列关于个人理财业务和储蓄业务的诉述正确的是() 个人理财业务的风险由商业银行独自承担。 储蓄业务的资金运用是定向的。 个人理财业务的资金的运用是非定向的。 个人理财业务是商业银行提供的一种服务。

What will be the result of attempting to run the following program?()  
public class Qaa75 {  
public static void main(String args[]) {  
String[][][] arr = {  
{ {}, null },  
{ { "1", "2" }, { "1", null, "3" } },  
{},  
{ { "1", null } }  };  
System.out.println(arr.length + arr[1][2].length); 
 }  
}  

参考答案:

  参考解析

本题暂无解析

在线 客服