万能百科  > 所属分类  > 

Whatwillbetheresultofattemptingtorunthefollowingprogram?()publicclassQaa75{publi

Whatwillbetheresultofattemptingtorunthefollowingprogram?()publicclassQaa75{publicstaticvoidmain(Stringargs[]){String[][][]arr={{{},null},{{"1","2"},{"1",null,"3"}},{},{{"1",null}}};System.out.println(arr.length+arr[1][2].length);}}

A.TheprogramwillterminatewithanArrayIndexOutOfBoundsException.

B.TheprogramwillterminatewithaNullPointerException.

C.4willbewrittentostandardoutput.

D.6willbewrittentostandardoutput.

E.7willbewrittentostandardoutput.

正确答案:

参考A

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签