This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Garbage collection problem" Watch "Garbage collection problem" New topic
Author

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: 14074
    
  16

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

http://www.coderanch.com/t/456750/Programmer-Certification-SCJP/certification/Number-objects-Array
http://www.coderanch.com/t/454321/Programmer-Certification-SCJP/certification/capitulo-kathy-sierra-book
http://www.coderanch.com/t/442658/Programmer-Certification-SCJP/certification/Help-with-Garbage-Collection
http://www.coderanch.com/t/423210/Programmer-Certification-SCJP/certification/array-GC
http://www.coderanch.com/t/417870/Programmer-Certification-SCJP/certification/Number-Objects-created
http://www.coderanch.com/t/270341/Programmer-Certification-SCJP/certification/K-B-SCJP-Chapter-Q

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


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Garbage collection problem
 
Similar Threads
Garbage Colection
garbage collection
HI please Help with. GC Kathy and Bert Book
Question on garbage collection from Kathy Sierra.
ch-assignment in kb ,need explanation of output:question 10