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 ? | 322 Yes | 35 No |
Post New Answer View All Answers
What do you understand by the term singleton?
What is difference between stringbuffer and string?
Explain the usage of this with constructors?
What is java in detail?
what is collatration?
Explain the difference between private, public, package and protected in java?
What is data type in computer?
What is this keyword in java?
what is a green thread? : Java thread
Is char a data type in java?
Is array dynamic in java?
How can we make a class virtual?
What is a method in coding?
How do you define a method?
What is the requirement of thread in java?