What is garbage collection in Java, and how can it be used ?
Answer Posted / siva
Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between throw and throws in java?
What are java packages?
Is a boolean variable?
What is the set interface in java programming?
What is the use of :: in java?
What are the restrictions that are applied to the java static methods?
Explain what pure virtual function is?
Does every java program need a main?
Explain about anonymous inner classes ?
Why does java have different data types for integers and floating-point values?
How is the marker interface used in Java?
What is the difference between post and put?
How do you reverse sort a list in java?
Explain the Propertie sof class?
What do you mean by append?