| 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: 24056
|
|
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
|
 |
 |
|
|
subject: Query Reg GC
|
|
|