参考资料:

1、深入理解Java try-with-resource

https://zhuanlan.zhihu.com/p/27824934