摘要: 当我们执行一个方法的时候这个方法可能存在异常,异常发生了是停止继续运行的,所以我们需要通过try{}catch( ){ }去捕获异常 public class Demo { int chufa(int a,int b) { return a/b; } public static void main( 阅读全文
posted @ 2021-02-21 15:42 火鸡的呐喊 阅读(42) 评论(0) 推荐(0) 编辑