What is garbage collection in Java, and how can it be used ?
Answer Posted / veer
When an object has of no use in a program then it has to be
discarded to free the occupied space by it so that other
object can fill the space.That is what Garbaghe collection
is.
| Is This Answer Correct ? | 43 Yes | 13 No |
Post New Answer View All Answers
What is flag in java?
What is sortedset in java?
Is null function in java?
What is the primitive type byte?
How listener identify that the event came from a particular object?
What is the Scope of Static Variable?
What is meant by design patterns?
What do you know about the garbage collector in java?
Where to store local variables?
Explain differences between collection api and stream api?
How do you detect memory leaks?
what are Hostile Applets?
Why object class is super class for every class in java?
How can you say java is object oriented?
Can you have two constructors in java?