多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

class Flow {  public static void main(String [] args) {  try {  System.out.print("before ");  doRiskyThing();  System.out.print("after ");  } catch (Exception fe) {  System.out.print("catch ");  }  System.out.println("done ");  }   public static void doRiskyThing() throws Exception {  // this code returns unless it throws an Exception  } }  可能会产生下面哪两项结果?() 

  • A、before
  • B、before catch
  • C、before after done
  • D、before catch done
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题