阅读背景:

Should .close() be put in finally block or not?

来源:互联网 

The following are 3 different ways to close a output writer. The first one puts close() method in try clause, the second one puts close in finally clause, and the third one uses a try-with-resources statement. Which one is the right or the best?The following are 3 different ways to close a o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: