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? 阅读全文
posted @ 2013-12-24 22:21 RobertC 阅读(585) 评论(0) 推荐(0) 编辑