black

Java认证考试综合练习

登录

单项选择题

现有: 
void topGo()  {     
try  { 
middleGo(); 
}  catch  (Exception e)  {     
System.out.print("catch");     
}     
} 
void middleGo()  throws Exception  {    
go(); 
system.out.print("late middle");    
} 
void go()  throws ExceptiOn  {    
throw new Exception();    
}
如果调用 topGo () ,则结果为:() 

A. late middle
B. catch
C. late middle catch
D. catch Iate middle

相关考题

单项选择题 现有:  class Number{  public static void main(String  []  aras)  {      try  {  System.out.print (Integer.parselnt ("forty"));      } catch (RuntimeException r)  {      System.out.print ("runtime");  } catch  (NumberFormatException e)  {      system..ut.print("number");      }      }      }  结果是什么?()

单项选择题 在方法的声明中,要求该方法必须抛出异常时使用哪个关键字?()

单项选择题 假设有自定义异常类ServiceException,那么抛出该异常的语句正确的是哪项?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064