单项选择题

下列关于如下这段代码的说法中正确的是( )。
public class test

public static void throwit()

throw new RuntimeException();

public static void main(String args[])

try
System.out.println(“你好吗”);
throwit();
System.out.println(“出错!”);

finally
System.out.println(“结束”);


A.以上程序段不会编译
B.程序输出“你好吗”,然后有RuntimeException异常发生,输出“出错!”,输出“结束”
C.程序输出“你好吗”,然后有RuntimeException异常发生,然后输出“结束”
D.程序输出“你好吗”,然后输出“结束”,然后有RunthneException异常发生