public class ExceptionApp {
public static void main(String[] args) {
try {
System.out.println(1 / 0);
} catch (Exception e) {
} finally {
System.out.println("finally");
}
try {
System.out.println(1 / 0);
} finally {
System.out.println("finally");
}
}
}
没有Catch 模块,错误会被抛出 导致程序中断