This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Garbage collection

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,,,,,,,,,i got really stuckj when i see the question related to garbage collection.........

can anybody tell me how can i draw a diagram to check......which one is avilable for GC.......

this question is from exam lab......



please tell.........how many object are eligible for GC after line 12......and how
 
Mahmoud Hossam
Ranch Hand
Posts: 74
Linux Netbeans IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it really helps to draw the relationships between the objects,try that
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic discusses the question you are confused with. There are other topics which you can search for which discuss this exact question and other topics like this which discuss garbage collection in general. You can search for them...
 
sumit kothalikar
Ranch Hand
Posts: 91
Notepad
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this diagram of gc for the above code

only one object is eliegible for gc.
Filename: untitled.bmp
Description: gc
File size: 703 Kbytes
[Download untitled.bmp] Download Attachment
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic