What is meant by Garbage collection ?

What is meant by Garbage collection ?

GC is automatic memory management, which is a collector attempts to reclaim garbage or memory occupied by objects that are no longer in use by the program(unreferenced objects). Advantage of GC is memory efficient, automatically done.Can be done  By nulling the reference, assigning a reference to another, annonymous object etc.

By:Sumit Tripathi
Date:2020-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher