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 / ms

garbage collecton in java means, if a particular object in
a program is not being refered since long time then it will
be automatically deleted with the help of garbage collector
so that some amount of memory is saved.we can explicitily
call it by adding a method system.gc()in the program.so in
this case there is no need to use'destructor'to destroy the
objects.

Is This Answer Correct ?    70 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the return statement?

1059


What all access modifiers are allowed for top class ?

1187


Can a constructor be made final?

1112


What is the different types of functions?

1057


What are different types of references?

978


Why declare Main() inside the class in java ?

1064


Why are variables important in research?

946


What is difference between Heap and Stack Memory?

1052


Explain about the select method with an example?

1181


How do you sort in descending order in java using collections sort?

898


What is final method?

1070


What is the difference between sleep and wait in java?

966


What steps are taken when the OS shifts from one-thread execution to another?

1367


How does singleton class work?

993


How to overcome the exception object reference not set to an instance of object?

1153