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

Which programming language is best in future?

491


Explain java coding standards for classes or java coding conventions for classes?

587


What is a qms manual?

524


What is backdrop?

571


What is the difference between arraylist and hashset in java?

491






Give an example of use of pointers in java class.

545


Where to store local variables?

561


How many tetrahedral voids are there in bcc?

524


How can you add and remove nodes in jtree?

593


What is arraylist e?

539


What is the simpletimezone class in java programming?

511


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

533


Which java ide is used the most?

488


How can we run a java program without making any object?

523


How do you find the maximum number from an array without comparing and sorting?

616