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
What is tcp ip in java?
What does replaceall do in java?
what is difference between equals and ==?
What is Java Shutdown Hook?
What is an object class?
Differentiate between postfix and prefix operators in java.
When to use runnable interface vs thread class in java?
Can we have more than one package statement in source file ?
What are the differences between abstract class and interface?
What is the disadvantage of java?
What is thread life cycle in java?
Why char array is preferred over string for storing password?
Can an interface extend another interface?
What is the final class?
List some java keywords sun like c, c + + keywords?