Thinking in Java 第九章“异常与错误处理”要点总结

1.异常处理机制的好处

2.Throwable中定义的printStackTrace()方法

3.异常的默认输出方法再Throwable中

getMessage()方法有点类似与toString()方法。

4.异常说明

把可能发生的异常throws在方法后面

猜你喜欢

转载自blog.csdn.net/weixin_38967434/article/details/82225533