Declare that the enclosing method, compare in this example, also throws IOException.
声明包装方法(本例为compare)也抛出IOException。
method throws an IOException, then the stream will not be closed (until the garbage collector runs its finalizer).
但是如果 props.load() 方法抛出一个 IOException,那么流则不会被关闭(直到垃圾收集器运行其终结器)。
应用推荐