wood burning stoves 2.0*
The moose likes Java in General and the fly likes Query Reg GC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Query Reg GC" Watch "Query Reg GC" New topic
Author

Query Reg GC

Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
Hi,
I faced following problem in a test,
Q - when will the Object 'o' eligible for GC when the stand alone application is Executed.

My Answer was Never.
_any Comments from Java Gurus_
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Right, never. Not really a "guru"-type question: the
object is always reachable via the static reference,
so it's never collected.


[Jess in Action][AskingGoodQuestions]
Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
I needed Confermation that I am correct
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query Reg GC