网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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.


参考答案

更多 “ 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. ” 相关考题