今天剛好看到同事用了try-with-resource寫法,才知道這種寫法,可以避免掉忘記關閉資源的問題。 ... am-i-using-the-java-7-try-with-resources-correctly.
確定! 回上一頁