异常2-异常处理机制
异常处理机制抛出异常捕获异常异常处理的五个关键词:try、catch、finally、throw、throws实例:int a = 1;int b = 0;System.out.println(a/b);异常:Exception in thread “main” java.lang.ArithmeticException: / by zeropackage com.exception;public class Test { public static void main(St