欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > Java认证考试综合练习

多项选择题

现有  
1. class Calc { 
2.  public static void main(String [] args) {  
3.    try { 
4.         int x = Integer.parselnt ("42a") ;  
5.     //insert code here 
6.         System.out.print ("oops");  
7.    }  
8.   }  
9. } 
 下面哪两行分别插入到第五行,会导致输 "oops" ? () 

    A. } catch (IllegalArgumentException e) {
    B. } catch (IllegalStateException c) {
    C. } catch (NumbelFormatException n) {
    D. } catch (ClassCastException c) {

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题