Hi
What is garbage collection. What is the process that is responsible for doing that in java G
What is Garbage Collection in Java
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Oct 8, 2012, 2:58 AM EDT
MyObj ob1 = new MyObj();
MyObj o2 = ob1;
Now reference count for MyObj is 2. When it becomes zero, MyObj will be deleted by Ref counter.
Satyapriya NayakRank #47 · 31.5K reputationPosted Oct 8, 2012, 5:18 AM EDT
Please refer the below link
http://www.javaworld.com/javaworld/jw-08-1996/jw-08-gc.html
Thanks