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 are keywords in java?
How do you define a method?
What is the difference between throw and throws keywords?
What is difference between fileinputstream and filereader in java?
what is meant by Byte code concept in Java?
What 5 doubled?
What is the method to declare member of a class static?
how its run?
How does enum work in java?
Explain the use of sublass in a java program?
What is method overloading in JAVA? Why is it not present in C ?
What is anti pattern in java?
Are arrays classes in java?
What is meant by singleton class?
Explain java coding standards for interfaces?