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
Explain creating threads by implementing runnable class?
What does microservices mean?
What is heterogeneous in java?
Write a program to calculate factorial in java?
What is the primary benefit of encapsulation?
Highest level event class of the event-delegation model?
Explain about core java?
What is the difference between integer parseint and integer valueof?
What does it mean that a method or field is “static”?
how to deploy tomcatserver to weblogic server? write d following steps?
What is string pool in java?
What is the purpose of encapsulation?
Which collection is best for sorting in java?
How do you check if a number is a perfect square?
What is a dynamic array in java?