单选题 阅读下列程序片段。
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()方法的运行结果将是( )。

【正确答案】 D
【答案解析】[解析] sayHello()方法正常运行则程序不抛出异常,并执行finally,所以为D。