题目内容
(请给出正确答案)
[单选题]
int[] nums = new int[4]; try { System.out.println("字符串1"); nums[4] = 10; System.out.println("字符串2"); } catch (ArrayIndexOutOfBoundsException ex) { System.out.println("字符串3"); }finally{ System.out.println("字符串4"); } 上述代码输出结果为()
A.字符串1 字符串2 字符串3 字符串4
B.字符串1 字符串2 字符串3
C.字符串1 字符串2 字符串4
D.字符串1 字符串3 字符串4
提问人:网友cy851210
发布时间:2022-01-07