How GC (Garbage Collector) knows the objects reference is
unused.Whether GC removes the unused object Parmanently or
it maintains something.
Answer Posted / devarathnam.c, kotagudibanda,k
Hi,
The Garbage Collector(GC)will be always under the control
of JVM, So JVM periodically runs the GC. It uses "sweep"
and "mark" algorithms to identify the unused objects in the
application. You don't bother about GC, JVM will take of it.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can java hashmap have duplicate keys?
What is the purpose of using break in each case of switch statement?
How do I stop concurrentmodificationexception?
How to disable caching on back button of the browser?
What is a void in java?
What are the types of java languages?
What is widening and narrowing in java? Discuss with an example.
What are the problems faced by java programmers who don't use layout managers?
What is string in java with example?
What are the advantages of autoboxing?
Which command from the jdk compiles a java program?
Is there any limitation of using inheritance?
What is command line argument in java?
How do you download stubs from Remote place?
Can we have return statement in finally clause? What will happen?