TiVo Interview Question: How does the garbage collecto... | Glassdoor

Interview Question

Software Engineer Interview(Student Candidate) San Jose, CA

How does the garbage collector in java work?

Answer

Interview Answer

1 Answer

0

GC is a built in feature which allows new objects being created without worrying explicitly about memory allocation/deallocation. Garbage collection automatically reclaims memory for reuse which enables faster development by reducing/eliminating memory leaks. All of the heap memory that is not occupied by marked objects is reclaimed, unused objects supposedly cleared..

Larry Taylor on Jul 10, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.