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
What is a locale?
Explain hashset and its features?
Explain public static void main(string args[]).
Can a constructor have different name than a class name in java?
What is not object oriented programming?
How to call one constructor from the other constructor ?
Why is stringbuffer not immutable?
Difference between keyword and identifier.
Is java a prime method?
What is multi-catch block in java?
What is byte value?
Explain heap sort?
Is treeset sorted in java?
What is java beans?
How can we make a class singleton?