单项选择题

下列代码段运行输出的结果是(   )
public void test() {       String s[] = new String[10];              try {                        s[9] =“exception”;                     }catch (ArrayIndexOutfBoundsException e) {                           System.out.println(“exception 1”);                                  }catch(IOException e){                           System.out.println(“exception 2”);                    }finally {            System.out.println(“over”);     } }
A、 over‍
B、exception 1
C、exception 2
D、exception

微信扫码免费搜题