单选题
Java
题号 #2322639
给出一段程序,试判断哪个是正确的结果( )
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 ”);
}
}
参考答案
B
答案解析
暂无解析
你可能感兴趣的试题
A.无法编译,因为没有指定异常
B.无法编译,因为没有catch子句
C.Hello world
D.Hello world Finally executing