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

问题:

[单选]

public class Test { 
public static void aMethod() throws Exception { 
try { 
throw new Exception();
} finally { 
System.out.println(“finally”); 
} 
} 
public static void main(String args[]) { 
try { 
aMethod(); 
} catch (Exception e) { 
System.out.println(“exception”); 
} 
System.out.println(“finished”); 
} 
} 
What is the result?()  

A .  finally
B .  exception finished
C .  finally exception finished
D .  Compilation fails.

领导者在领导活动中发挥着主导作用、统率作用和中枢作用。() 传染病监测方式 幼儿园课程编制是包括幼儿园()、()、()以及()在内的整个过程。 信息传送者和信息接收者的世界观、价值观、人生观的差别过大会形成() 认知性信息障碍。 接收者的情绪障碍。 情感性信息障碍。 距离障碍。 以下选项中,设置404页面的好处有哪些?() 防止重复页。 降低网站跳出率。 对搜索引擎友好。 防止死链。

public class Test { 
public static void aMethod() throws Exception { 
try { 
throw new Exception();
} finally { 
System.out.println(“finally”); 
} 
} 
public static void main(String args[]) { 
try { 
aMethod(); 
} catch (Exception e) { 
System.out.println(“exception”); 
} 
System.out.println(“finished”); 
} 
} 
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服