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
what is difference between equals and ==?
What is the use of StringTokenizer class?
What are runtime exceptions?
What is arguments in java?
What is the exact difference in between unicast and multicast object? Where we will use?
what is object slice?
What are the drawbacks for singleton class?
What is Gang of four design patterns
Difference between association, composition and aggregation?
What is difference between stringbuffer and string?
Is array dynamic in java?
Can we catch more than one exception in single catch block?
What are untrusted applets?
What are the different http methods?
Explain the importance of finally block in java?