wood burning stoves 2.0
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Eligible for gc? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Eligible for gc?" Watch "Eligible for gc?" New topic

Eligible for gc?

John Fontana
Ranch Hand

Joined: Feb 28, 2002
Posts: 235
I am getting stuck on when to tell exactly when and which objects are eligible for garbage collection...I always miss these questions on mock exams. Does anyone have a good memory trick or concise process they use to get this? Would appreciate some pointers...

"If you do what you've always done, you'll get what you've always gotten."
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
There's no real quick trick, but once you understand the concepts behind an object's life cycle-how it gets created, used, and discarded, then you will be able to understand garbage collection.
If you have a specific question I can try to answer it for you.

SCJP 1.4
John Fontana
Ranch Hand

Joined: Feb 28, 2002
Posts: 235
Hi -
I was having a frustrating mental block....I just drank a pot of coffee and dove into the Syngress book chapter on it, and also went through all gc-related questions on jq+....I think I've got it now...I had to get past not being able to "prove" the code in most cases...
...yawn...now it's time I set myself to null and go to sleep...(or is that John.sleep(8 hours)?)
I agree. Here's the link: http://aspose.com/file-tools
subject: Eligible for gc?
jQuery in Action, 3rd edition