What is garbage collection in Java, and how can it be used ?
Answer Posted / jaffer
Actually garbage collector is a daemon thread. Normally
JVM’s heap stores all objects which is created by new
operator. So objects are occupying memory in heap. Some
objects are not used for long time. So garbage collector do
that work automatically.
Otherwise we call finalization method
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is string :: npos?
Does collectionutils isempty check for null?
What is a static class in java?
What are passing parameters?
What is class forname?
Is hashmap thread safe?
Is list thread safe in java?
Explain what do you mean by functional overloading in java?
What is the parse method in java?
What is the significance of continue jump statement? Explain with an example.
What is file in java?
Can we declare a class as static?
What is difference between == equals () and compareto () method?
When should I use stringbuffer?
Are static members inherited to sub classes?