adspace
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 the difference between equals() and == in java?
Explain public static void main(string args[]) in java.
What is java string pool?
How to sort array in descending order in java?
Write a program to find the whether a number is an Armstrong number or not?
What are the differences between heap and stack memory in java?
Is minecraft 1.15 out?
What do you mean by an interface in java?
What is a classloader in java?
What is the difference between break and continue statements?
Differentiate between static and non-static methods in java.
explain different ways of using thread? : Java thread
Write a program to print count of empty strings in java 8?
What is an object in java and how is it created?
What is a constructor overloading in java?