Java异常处理我的心得总结

一、异常处理的流程老是首先抛出异常,而后才进行处理函数 public class TestException { public static void main(String[] args) { int a = 6; int b = 0; try { // try监控区域 if (b == 0) throw new ArithmeticException(); // 经
相关文章
相关标签/搜索