给定以下JAVA代码,这段代码编译运行后输出的结果是()publicclassTest{publicstaticintaMethod(inti)throwsException{try{returni/10;}catch(Exceptionex){thrownewException("exceptioninaaMothod");}finally{System.out.print("finally");}}publicstaticvoidmain(String[]args){try{aMethod(0);}catch(Exceptionex){System.out.print("exceptioninmain");}System.out.print("finished");}}
A.finallyexceptioninmainfinished
B.exceptioninmainfinally
C.finallyfinished
D.finallyexceptioninmainfinished
- · 有5位网友选择 D,占比55.56%
- · 有2位网友选择 C,占比22.22%
- · 有1位网友选择 B,占比11.11%
- · 有1位网友选择 A,占比11.11%