高等继续教育 / Java程序设计
正确率:100%
题型描述: 多选题
看下面一段代码,如果会抛出异常,那么会有什么输出结果?( ) public void fun () { int i; try { i=System.in.read (); System.out.println(Location 1); } catch (IOException e) { System.out.println(Location 2); } finally { System.out.println(Location 3); } System.out.println(Location 4); }
A.Location 4
B.Location 2
C.Location 1
D.Location 3
看下面一段代码,如果会抛出异常,那么会有什么输出结果?( ) public void fun () { int i; try { i=System.in.read (); System.out.println(Location 1); } catch (IOException e) { System.out.println(Location 2); } finally { System.out.println(Location 3); } System.out.println(Location 4); }
A.Location 4
B.Location 2
C.Location 1
D.Location 3
参考答案:
佳题速递: