Back to Top

Sunday, 15 January 2012

JAVA : What is the purpose of garbage collection in Java, and when is it used?

The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.

2 Responses to “ JAVA : What is the purpose of garbage collection in Java, and when is it used? ”

Kamila said...
23 April 2019 at 14:14

Thanks for your great and helpful presentation I like your good service.I always appreciate your post.That is very interesting I love reading and I am always searching for informative information like this.Well written article Thank You for Sharing with Us
Best Dot Net Training in Chennai
Best Software Testing Training Institute in Chennai
Java Training with Placement
Best PHP Training Institutes


Hema Yadav said...
22 July 2023 at 16:37

Very nice blog, content is so valuable and informating. Thanks for posting!
Take your tech skills to the next level with the QA Digital Bootcamp


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar