Removal of Methods from FileInputStream and FileOutputStream
The finalize methods of FileInputStream and FileOutputStream were deprecated for removal in JDK 9. They have been removed in this release.
The java.lang.ref.Cleaner has been implemented since JDK 9 as the primary mechanism to close file descriptors that are no longer reachable from FileInputStream and FileOutputStream.
The recommended approach to close files is to explicitly call close or to use try-with-resources.
The java.lang.ref.Cleaner has been implemented since JDK 9 as the primary mechanism to close file descriptors that are no longer reachable from FileInputStream and FileOutputStream.
The recommended approach to close files is to explicitly call close or to use try-with-resources.
Comments
Post a Comment