Java
Programming and Technical
Programming
Technical
What is the use of finalize method?
Read Solution (Total 6)
-
- Finalize is used to perform clean up processing just before object is garbage collected.
- 9 years agoHelpfull: Yes(2) No(0)
- It is called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
- 9 years agoHelpfull: Yes(2) No(0)
- finalize methode is used to do some final stuff which never gonna change
- 9 years agoHelpfull: Yes(0) No(0)
- when object's scope is finished then finalized method is called to clean up memory.
- 9 years agoHelpfull: Yes(0) No(0)
- The finalize method is called by the garbage collector, just before releasing the object’s memory. It is normally advised to release resources held by the object inside the finalize method.
- 9 years agoHelpfull: Yes(0) No(0)
- In java just prior to garbage collection, the jvm calls the finalize method implicitly to perform clean up action and release some non java resource files
- 9 years agoHelpfull: Yes(0) No(0)
Java Other Question