本帖最后由 vaqh 于 2014-7-30 08:37 编辑
public class ExceptionTest2 {
public static void function() throws Exception
{
try
{
throw new Exception();
}
finally
{
System.out.println("B");
}
}
public static void main(String[] args) {
try {
function();
System.out.println("A");
} catch (Exception e) {
System.out.println("C");
}
System.out.println("D");
}
}
|
|