What is garbage collection in Java, and how can it be used ?
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
GarbageCollector: Whenever an object is no longer used in
the program at that time the garbage collector reclaims the
memory of an object.It is controlled by the JVM ,The JVM
runs periadically by using "mark" and "sweep"algorithms.
Instead of "destructor" in c++ , java supports garbage
collector.
| Is This Answer Correct ? | 84 Yes | 21 No |
Post New Answer View All Answers
how to deploy apache tomcat server to weblogic server in java
Write a java program for binary search?
How many bits is size_t?
How many bytes is 255 characters?
Can a hashset contain duplicates java?
What is boolean in java?
What do you mean by garbage collection used in java?
Can the interface be final?
Do loops java?
What is rule of accessibility in java?
What are functions in java?
Does java set allow duplicates?
What are peerless components?
What is the use of arrays tostring () in java?
Explain thread in java?