File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Garbage collection problem 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 "Garbage collection problem" Watch "Garbage collection problem" New topic

Garbage collection problem

Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72
My question is that after reaching //dostuff
how many objects are eligible for garbage collection

This question is from K&B chap-3
Can somebody explain how this all is happening in detail, as i am a bit confused about garbage
collection, I read a lot but still i am not happy with my knowledge about it

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

The same question has been discussed a number of times before:

I found these by searching the forum for the word "Dozens".

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Garbage collection problem
It's not a secret anymore!