aspose file tools
The moose likes Java in General and the fly likes Query Reg GC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 24056
    
  13

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Query Reg GC
 
Similar Threads
Objects available for gc?
About GC
Runtime methods
ambiguity in the functionality of garbage collector
Jtips Mock Exam #1 Question 10