staticvoidtest()throwsError{if(true)thrownewAssertionError();System.out.print(”test);}publicstaticvoidmain(String[]args){try{test();}catch(Exceptionex){System.out.print(”exception);}System.out.print(”elld);}Whatistheresult?()

A.end B.Compilationfails. C.exceptionend D.exceptiontestend E.AThrowableisthrownbymain. F.AnExceptionisthrownbymain.

时间:2023-09-10 13:44:01

相似题目