Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Garbage Collection

 
Mathew Sam
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When the Object created in line1 is ready for garbage collection?.
Will it be ready just after line1 ?
[ June 11, 2002: Message edited by: Mathew Sam ]
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. There is no reference to the object after that line is executed, so it is eligible for garbage collection after line 1.
Corey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic