找考题网-背景图
单项选择题

1.classExc0extendsException{}2.classExc1extendsExc0{}3.publicclassTest{4.publicstaticvoidmain(Stringargs[]){5.try{6.thrownewExc1();7.}catch(Exc0e0){8.System.out.println(Ex0caught”);9.}catch(Exceptione){10.System.out.println(exceptioncaught”);11.}12.}13.}Whatistheresult?()
A.Ex0caught
B.exceptioncaught
C.Compilationfailsbecauseofanerroratline2.
D.Compilationfailsbecauseofanerroratline6.

A.classExc0extendsException{}2.classExc1extendsExc0{}3.publicclassTest{4.publicstaticvoidmain(Stringargs[]){5.try{6.thrownewExc1();7.}catch(Exc0e0){8.System.out.println(Ex0caught”);9.}catch(Exceptione){10.System.out.println(exceptioncaught”);11.}12.}13.}Whatistheresult?()
A.Ex0caught
B.exceptioncaught
C.Compilationfailsbecauseofanerroratline2.
D.Compilationfailsbecauseofanerroratline6.
热门试题