它在未检查的上下文中重复前面的示例。
注意如果我们想从一个未检查的数据访问异常恢复,我们同样可以。
Note that if we do want to recover from an unchecked data access exception, we can still.
如果调用者不能以有意义的方式处理这个异常,那么考虑抛出一个未检查的(运行时)异常。
If the caller won't be able to handle the exception in a meaningful way, consider throwing an unchecked (run-time) exception.
应用推荐