What is garbage collection in Java, and how can it be used ?
Answer Posted / nitin kumar
Garbage collection is a system level thread that tracks each
memory allocation. During the idle cycles in the JVM, the
garbage collection thread check for and frees memory that
can be freed. It happen automatically during the lifetime of
a Java Technology program.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can we make sure main() is the last thread to finish in java program?
What is the purpose of return statement?
What are pass by reference and pass by value?
Why is logger singleton?
what is meant by Garbage collection?
What is linked hashset and its features?
What does bitwise or mean?
Which package is used for pattern matching with regular expressions?
How to find the index of the largest number in an arraylist java?
What is the difference between state-based unit testing and interaction-based unit testing?
Why are there no global variables in java?
Can we override protected method in java?
What is number data type?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Explain the usage of this with constructors?