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
Can we make a constructor final?
what is meant wrapper classes?
What is ternary operator?
What is the meaning of flag day?
What is the exact difference in between Unicast and Multicast object?
Give the hierarchy of inputstream and outputstream classes.
Can I learn java without any programming experience?
How big is a boolean?
What is a class variable?
What is synchronization and why is it important in java programming?
Can we declare a class as static?
How to display all the prime numbers between 1 and 100
What is java util function?
What are the advantages of user defined functions?
Does java initialize arrays to zero?