Organizational Research By

Surprising Reserch Topic

Question:What is the purpose of garbage collection in Java, and when is it used?



asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes
23 views



Related Hot Questions

2 Answers

0 votes
The purpose 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. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013
0 votes
The purpose 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. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...