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 are different types of control structures?
What does provide mean construction?
Do you need to import math in java?
How do you initialize an arraylist in java?
What is methodological framework?
What is the use of list in java?
What is meant by call by reference?
What is jar?
What do you understand by java?
What is the purpose of file class?
Can we extend immutable class?
Can we use String with switch case?
What happens if an exception is throws from an object's constructor?
Write a program to print the pattern given below
What is difference between length and length() method in java ?