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
who can i handle multiple client in RMI
Can we pass a primitive type by reference in java? How
Can we declare the main method of our class as private?
Discuss different types of errors that generally occur while programming.
Write a program to reverse a number in java?
What is maximum size of arraylist in java?
What’s the difference between callable and runnable?
Can we overload run() method in java?
Can you pass functions in java?
What is the main advantage of passing argument by reference?
What is predicate in java?
How many bits is a double?
What is a double?
Java is pass by value or pass by reference? Explain
What is final class?