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

Should database connections be singleton?

965


how to create daemon thread in java?

1080


Which class is the superclass for every class in java programming?

1000


Is nullpointerexception checked or unchecked?

1036


What are predicates in java 8?

1019


Why hashmap is used in java?

1096


Can inner class final?

1097


What is a null check?

1014


What are the escape sequences in java?

1030


Does treeset use compareto?

979


What happens if we override private method?

973


What is byte [] in java?

1018


Can we declare array without size in java?

1041


What is <> used for in java?

1118


How can you read content from file in java?

1006