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 does substring mean?
What is thread safe java?
What is arraylist e?
What is a predicate method?
What state is a thread in when it is executing?
What is array size in java?
What are the restrictions imposed on method overriding?
What is variable length arguments in java?
what is mena by object block any what is the use of that
What is autoboxing in java?
What technique can be employed to compare two strings?
What is ctrl m character?
Say any two properties in beans?
What is variable explain?
What does provide mean construction?