Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How does varargs work in java?

1084


What are filterstreams?

1070


Can we change the scope of the overridden method in the subclass?

1387


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

1139


Can static methods access instance variables in java?

1077


What is consumer in java?

961


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

959


What are the new features in java 8? Explain

945


What is sizeof () operator?

967


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.

1011


Explain about arraylist?

1089


Can I overload to string method

1435


Why we use set in java?

993


Are static members inherited to sub classes?

1135


Can You Have Virtual Functions In Java?

1136