File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Question on garbage collection from Kathy Sierra. 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 » Java » Beginning Java
Bookmark "Question on garbage collection from Kathy Sierra." Watch "Question on garbage collection from Kathy Sierra." New topic
Author

Question on garbage collection from Kathy Sierra.

Shanu Pandey
Greenhorn

Joined: Mar 17, 2011
Posts: 18

This Question is from Kathy Sierra page 275 chapter 3.





When line 16 is reached,
(1)how many objects will be created and
(2)how many objects will be eligible for garbage collection?


Please Reply....with diagram(if possible)
Yogesh Gnanapraksam
Ranch Hand

Joined: Dec 17, 2009
Posts: 133
You are trying to get work done using the forum members. This is not recommended.
Matt Cartwright
Ranch Hand

Joined: Aug 25, 2008
Posts: 149

DIAGRAM
shuba gopal
Ranch Hand

Joined: May 12, 2011
Posts: 76
Shanu, give a search in the forum for Alpha a1. This question has been answered previously.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question on garbage collection from Kathy Sierra.
 
Similar Threads
Question about object creation
Eligible for garbage collection
Garbage collection program really confusing me?
Problems with garbage collection
Garbage Collection query.