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 the use of :: in java?
How would you use Bubble Sort to sort the number of elements?
Can an object subclass another object?
Can a final variable be manipulated in java?
What is tcp ip in java?
What are "class access modifiers" in Java?
What is lazy programming?
Explain what pure virtual function is?
What is difference between checked and unchecked exception in java?
Can we nested try statements in java?
What is a nullable field?
What is the multi-catch block in java?
What do you mean by mnemonics?
Variables used in a switch statement can be used with which datatypes?
Is sizeof a keyword in java programming?