What is garbage collection in Java, and how can it be used ?
Answer Posted / pranab dutta
When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.
Is This Answer Correct ? | 324 Yes | 35 No |
Post New Answer View All Answers
What are unchecked exceptions in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
Explain how hashmap works?
What is the meaning of immutable regarding string?
What are the types of collections in java?
What checkbox method allows you to tell if a checkbox is checked?
What is the difference between stored procedure & function?
What is method reference?
What is the difference between normal report & matrix report?
What is qualitative variable?
How to do encapsulation in java?
Give an example of call be reference significance.
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What does snprintf return?
How do you remove spaces in java?