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
How does varargs work in java?
What are filterstreams?
Can we change the scope of the overridden method in the subclass?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Can static methods access instance variables in java?
What is consumer in java?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What are the new features in java 8? Explain
What is sizeof () operator?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Explain about arraylist?
Can I overload to string method
Why we use set in java?
Are static members inherited to sub classes?
Can You Have Virtual Functions In Java?