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
Can interface be private in java?
Can you declare an interface method static?
What is the purpose of format function?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Is it safe to install java on my computer?
What does this mean java?
What is difference between overloading and overriding in java?
Is java same as core java?
How finally used under exception handling?
Why we go for collections in java?
what are abstract functions?
Can you add null to a list java?
What are namespaces in java?
What is the difference between a vector & an array list?
Can we write class inside a class in java?