下面程序的执行结果是( )。 class Test { public static void main (String args ) { new Test( ).test(); } public void test( ) { try { System.out.print ("try"); } catch (ArrayIndexOutOfBoundsException e) { System.out.print("catch1"); } catch (Exception e) { System.out.print("catch2"); }finally { System.out.print("finally"); } } } (2.6)
选项:
A:finally
B:try finally
C:try catch1 finally
D:try catch2 finally
发布时间:2024-05-19 10:39:19