How GC (Garbage Collector) knows the objects reference is
unused.Whether GC removes the unused object Parmanently or
it maintains something.

Answer Posted / balamurugan

it checks whenever we will not used the objects in our
program then jvm checked with forward referenceduse help of
heap memory. then gb removes the un used objects

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a programming object?

656


Can a abstract class be declared final?

659


Why set do not allow duplicates in java?

670


Discuss about garbage collector in Java.

753


Can an object be null?

632






Explain reverse a linked list recursive java solution?

640


What is the meaning of variables in research?

634


What are the basic control structures?

590


What is variable and rules of variable?

623


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

607


Why are getters and setters used?

657


When we should use serialization?

657


What is basic syntax?

643


How do I know if java is installed?

629


What is Classloader in Java?

722