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
Should database connections be singleton?
how to create daemon thread in java?
Which class is the superclass for every class in java programming?
Is nullpointerexception checked or unchecked?
What are predicates in java 8?
Why hashmap is used in java?
Can inner class final?
What is a null check?
What are the escape sequences in java?
Does treeset use compareto?
What happens if we override private method?
What is byte [] in java?
Can we declare array without size in java?
What is <> used for in java?
How can you read content from file in java?