What is the things in Java IO, in translation, and practice English

xiaoxiao2021-03-05  24

The FileOutputStream class also has a protected finalize () method that's invoked beforea FileOutputStream object is garbage-collected. This method ensures that files are properlyflushed and closed before the file output stream that opened them is garbage-collected. Younormally do not need to invoke this method explicitly. If you subclass FileOutputStream andoverride finalize (), the subclass's finalize () method should invoke this finalize () method by calling super.finalize (). FileOutputStream class has a finalize () method, declared as protected, in this method The FileOutputStream object is called before being reclaimed. This method guarantees that the file has been written correctly before the file output stream is reclaimed and is closed. This method does not need to be called directly, but if you inherit FileOutputStream and overload the Finalize () method, the overwhelmed Finalize () needs to use Super.Finalize () to call the parent's method. I offten find it useful to beable to open an arbitrary file and interpret it in an arbitrary fashion. How to translate this sentence? not very clear. Probably here Arbitrary means random mean: I found an arbitrary file and open it in any way? ? ? I don't know if it is not right, I don't know, wait for the technical high, hahahaha.

转载请注明原文地址:https://www.9cbs.com/read-36204.html

New Post(0)