单选题:给出一段程序,试判断哪个是正确的结果(  )public class rtExcept{public static v

  • 题目分类:Java
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
给出一段程序,试判断哪个是正确的结果(  )
public class rtExcept{
public static void throwit(){
System.out.print(“throwit”);
throw new RuntimeException();
}
public static void main(String [] aa){
try{
System.out.print(“hello “);
throwit(); }
catch(Exception re){
System.out.print(“caught ”); }
finally{
System.out.print(“finally ”); }
System.out.print(“after ”);
}
} A.hello throwit caught
B.hello throwit caught finally after
C.hello throwit RuntimeException after
D.hello throwit caught finally after RuntimeException

参考答案:
答案解析:

哪个关键字可以抛出异常? (  )

哪个关键字可以抛出异常? (  )A.transient B.finally C.throw D.static

查看答案

投标人应当按照(  )的要求编制投标文件

投标人应当按照(  )的要求编制投标文件 A.法律法规 B.强制性规范 C.招标文件 D.市场竞争

查看答案

抵押贷款指要求企业以抵押品作为担保的贷款,作为抵押贷款担保的抵押品可以是(  )。

抵押贷款指要求企业以抵押品作为担保的贷款,作为抵押贷款担保的抵押品可以是(  )。A.房屋 B.股票 C.债券 D.机器设备

查看答案

下面程序运行结果为:(  )public class test3{public static void main(Str

下面程序运行结果为:(  )public class test3{public static void main(String args[]){ int

查看答案

下列语句片段 int a=10,b=4,c=20,d=6; System.out.println(a++*b+c*--d

下列语句片段 int a=10,b=4,c=20,d=6; System.out.println(a++*b+c*--d); 的结果为(  )A.144

查看答案