How is Garbage collection done in Java?
Answer Posted / sandeep
Garbage Collection is a complex feature in Java Technology.
By Programme we cannot cause gc but we can request JVM using
gc() method but it does not gurantee. Actually when an
object in our programme become unreachable it is ready to
garbage collection..the garbage collection runs periodically
and then claim the memory it does occupy ( the unreachable
object)..and is how garbage collected is done.
Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
How destructors are defined in java?
Can set contain duplicates?
How can you say java is object oriented?
Explain the polymorphism principle?
Is arraylist a class in java?
What do you mean by global variable?
What is the requirement of thread in java?
Can list have duplicates in java?
What are anonymous inner classes?
What is the difference between Grid and Gridbaglayout?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What is advantage of java?
How many bits is size_t?
What is collection sort in java?
What do you understand by java virtual machine?