What will be the result of attempting to run the f...
单选题

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);   }   }  

发布日期:2020-04-10

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.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定