试题详情
- 单项选择题 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.
- A
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- Click the
- 下面有关java类加载器,说法正确的是(
- 在java中,引用对象变量和对象间有什么
- Swing JFrame类缺
- 以下哪项不是Swing容器?()Q
- 在创建JBuilder工程的步骤中,下面
- You need
- How can
- 现有: class&ens
- 在Java中,关于HashMap类的描述
- Java的一个重要特点是结构中立性,这种
- 标签是最常用的组件,它的作用是在界面上显
- 在一个循环中使用break,contin
- ++op运算符的作用是先将变量的值加1再
- Which of
- 关于String,StringBuild
- 两个线程并发执行以下代码,假设a是全局变
- public class&e
- 下面的输出结果是什么()。