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 meant by bytecode?
What is Enum in Java?
What is codebase?
What is sorting algorithm in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What does i ++ mean in Java?
How many classes can any class inherit java?
What is flag in java?
What is object-oriented paradigm?
Is a class an object?
What is the concept of multithreading?
How do you convert boolean to boolean?
Can we sort arraylist in java?
What is the return type of the main method?
How do you add an element to a hashset in java?