异常抛出注意点

文章参考  https://blog.csdn.net/sdr_zd/article/details/75675004

如果捕获的是check异常,如果throw,则方法上必须有throws,如果是运行异常则,不需要写throws

猜你喜欢

转载自www.cnblogs.com/shuaiandjun/p/9661525.html