Java
Programming and Technical
Programming
Program
Q. What is the purpose of finalization?
A. The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected. For example, closing a opened file, closing a opened database Connection.
Read Solution (Total 1)
-
- No need to release the resources in the finalize method we can release the resources in the finally block instead of finalize block......Advantages or uses of finalize
1)we can count the number of object are Garbage Collected
2) we can make unreachable object back to reachable.... - 10 years agoHelpfull: Yes(0) No(0)
Java Other Question