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 you give names of Container classes?
What are different access specifiers in java? Explain
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What are the steps involved to create a bean?
Can a class with private constructor be extended?
What are Normalization Rules? Define Normalization?
Why singleton class is used in java?
What is the base class for error and exception?
What is a locale?
Explain about method local inner classes or local inner classes in java?
What does singleton mean in java?
Do I need java on my computer?
What are different types of expressions?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is anagram word?