阅读下列程序片段   public void test(){   try{   sayHello();   system

分类: 2019江中知识赛B(看题模式) 发布时间: 2023-12-01 12:13 浏览量: 3

阅读下列程序片段   public void test(){   try{   sayHello();   system.out.println("Hello");   } catch (ArrayIndexOutOfBoundException e) {   System.out.println("ArrayIndexOutOfBoundException");   }catch(Exception e){   System.out.println("Exception");   }finally {   System.out.println("Finally");   }   }   如果sayHello( )方法正常运行,则test( )方法的运行结果将是:

A.Hello

B.ArrayIndexOutOfBondsException

C.Exception   Finally

D.Hello  Finally

E.D

F.3

正确答案是D