---
title: "What is the use of Garbage collector"  
description: "What is the use of Garbage collector"  
author: "Anonymous User"  
published: 2015-07-15  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2704/what-is-the-use-of-garbage-collector  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the use of Garbage collector

For efficient memory utilization, Java uses Garbage collector. The main objective of the garbage collector is free up memory by detecting unused objects and deleting them. Garbage Collector gets invoked automatically and it won't assure required memory for a program to run.

## Answers

### Answer by Anonymous User

For efficient memory utilization, Java uses Garbage collector. The main objective of the garbage collector is free up memory by detecting unused objects and deleting them. Garbage Collector gets invoked automatically and it won't assure required memory for a program to run.


---

Original Source: https://www.mindstick.com/interview/2704/what-is-the-use-of-garbage-collector

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
