当前位置:SCJP程序员认证考试题库

问题:

[单选]

import java.io.IOException;  
public class ExceptionTest(  
public static void main (Stringargs) 
try (  
methodA();  
) catch (IOException e) (  
system.out.printIn(“Caught IOException”); 
) catch (Exception e) (  
system.out.printIn(“Caught Exception”);  
)  
)  
public void methodA () {  
throw new IOException (); 
}    
What is the result?()  

A .  The code will not compile.
B .  The output is caught exception.
C .  The output is caught IOException.
D .  The program executes normally without printing a message.

改革后我国已经形成()等组成的多元化科研格局企业在科技创新中地位不断加强。 高校。 中介机构。 科研院所。 企业。 组织购买中心 通用门式起重机和装卸桥安装后,应立即装上夹轨器,并进行试验。 滚筒式底盘测功试验台的组成? 指挥链

import java.io.IOException;  
public class ExceptionTest(  
public static void main (Stringargs) 
try (  
methodA();  
) catch (IOException e) (  
system.out.printIn(“Caught IOException”); 
) catch (Exception e) (  
system.out.printIn(“Caught Exception”);  
)  
)  
public void methodA () {  
throw new IOException (); 
}    
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服