代码如下:public class Test { public static void main(String[] args) {
new Test().aa();
System.out.println("after aa()");
try {
new Test().bb();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("after bb()");
} public void aa(){
try{
throw new Exception("aaaa");
}catch(Exception e){
e.printStackTrace();
}
System.out.println("in aa()");
}

public void bb() throws Exception{
throw new Exception("bbbb");
}
}
控制台输出如下:in aa()
after aa()
after bb()
java.lang.Exception: aaaa
at Test.aa(Test.java:17)
at Test.main(Test.java:5)
java.lang.Exception: bbbb
at Test.bb(Test.java:25)
at Test.main(Test.java:8)
这是为何?应该在throw异常后程序终止,怎么还会继续执行那?