What is garbage collection in Java, and how can it be used ?
Answer Posted / sachin deshmukh
In java doesn't allow memory leakage,Garbage collector
automatically deallocates memory.It deallocates memory of
objects that no longer has any references i.e. references
count is zero.
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Is string is a keyword in java?
Why stringbuffer is faster than string?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How are the elements of a gridbaglayout organized?
How do you do math powers in java?
Is there any case when finally will not be executed?
Why is java called java?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is final method in java?
Can a static class have a constructor?
What is purpose of keyword void?
How do listeners work?
How much ram can a 64 bit processor theoretically?
How do weakhashmap works?
Can we assign null to double in java?