问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

现有:classFlow{publicstaticvoidmain(String[]args)try{System.out.print("before");


现有:classFlow{publicstaticvoidmain(String[]args)try{System.out.print("before");doRiskyThing();System.out.print("after");}catch(Exceptionfe){System.out.print("catch");}System.out.println("done");}publicstaticvoiddoRiskyThing()throwsException{//thiscodereturnsunlessitthrowsanException}}可能会产生哪两项结果?()

A、beforecatch

B、beforeafterdone

C、beforecatchdone

D、beforeaftercatch

参考答案
您可能感兴趣的试题