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
What is numel matlab?
What is struts in java?
Why enumeration is faster than iterator?
What is difference between this and super keyword?
Can there be an abstract method without an abstract class?
Which sorting algorithm is in place?
what do you mean by stream pipelining in java 8? Explain
What is a key in java?
What are jee technologies?
whatis Home interface and Remoteinterface? with example?
How does varargs work in java?
What is parsing a string?
What is a protected method?
Can we have multiple catch block for a try block?
Does java support multiple inheritance or not?