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 many techniques can be employed to create a string object?
What is t type java?
What do you mean by buffering?
What methodology can be utilized to link to a database?
Why do we need singleton class?
Explain 5 io best practices?
What is difference between final and finally in java?
What is join () in java?
Define canvas?
What is incompatible types in java?
What is number data type?
What is the meaning of find and replace?
What do you mean by an interface in java?
What is the use of math abs in java?
How do you override a private method in java?