• Post Reply Bookmark Topic Watch Topic
  • New Topic

garbage collection!!!  RSS feed

 
stella stella
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me how garbage collection happen in Java.
What happen as soon as program comes out of method with a local object declaration , wud garbage collector do it's job just then or when??
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stella,

Since this is your first post here...Welcome to Java Ranch

I think this description about Garbage Collector will help you understand better. Please let me know if you need any more resource
 
Vijayendra V Rao
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is another good article on Garbage Collector.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
stella stella,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

The point here is that we prefer not to have obviously fictitious display names. I'm guessing that "stella stella" isn't your real name.

Thanks Pardner! Hope to see you 'round the Ranch!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides the naming rule, every time I read it I have to run out in the street, rip my shirt open and scream it. I mean, I am Stanley, no?
[ August 06, 2004: Message edited by: Stan James ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!