This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes finalize method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "finalize method" Watch "finalize method" New topic
Author

finalize method

Gokulakrishnan Raghuraman
Greenhorn

Joined: Nov 27, 2002
Posts: 10
Is the finalize method invoked atmost once by the JVM for a given object ? and can the finalize method be resurrect the object upon which it has been invoked ?
Thanx
Arpana Rai
Ranch Hand

Joined: Nov 12, 2002
Posts: 93
Originally posted by Gokulakrishnan Raghuraman:
Is the finalize method invoked atmost once by the JVM for a given object ? and can the finalize method be resurrect the object upon which it has been invoked ?
Thanx

Answer to both the Q is "YES".Also,finalize method() can resurrect the object only once.
regds,
Arpana


SCJP1.4(91%)
 
wood burning stoves
 
subject: finalize method
 
Similar Threads
garbage collection
GC from j@whiz
GC doubt
I don't think answers "b" is correct
Gc question