Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt about garbage collection

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.
 
venkatg
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by bkkumar:
hi friends!
i got one doubt regarding garbage collection.
when actually garbage collection takes place?is it just sporadically (OR) when no references to th objects exists.
(OR) when memory is full.
pls give the reply ASAP.

hi bkkumar
Its a good question,
Actually garbage collection takes place when no references
to that specific object exists.
By that it releases the memory by which performance will also
increases.
thanks
Any one can throw a light on my explanation
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct... But, there is more to it...
Please search the Programmers Certification Form for more information if desired.
Monty6
 
Ray Marsh
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to a more appropriate forum: Java in General (Beginners)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic