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
how we can make a write-only class in java?
What is nan inf?
Is array serializable java?
What’s meant by anonymous class?
What is instance example?
What are variable names?
What is files manifesting?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What are nested classes in java?
What is return used for in java?
Difference between a class and an object?
What is a line break?
What is the difference between Java1.4 and Java1.5
How do you define a method?
What is defined as false sharing in the context of multithreading?