thinkinterview » interview questions
« Previous

interview Questions

next »
question What is the purpose of garbage collection in Java, and when is it used?
Answer Description: 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.

Next Queston » What is difference between Path and Classpath?...
What is difference between Path and Classpath? View full queston »

Posted in: Java(30) |