Java 繼承 Closeable 介面的類別在操作結束時都應該呼叫 close() 關閉資源,在Java 7新增了try-with-resources語法,使得關閉資源的程式變得簡潔許多 ...
確定! 回上一頁