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...

how exactly garbage collection take place?

Answer Posted / niraj talukdar

Garbage Collection is an automated process in Java unlike C
and C++. It executes to wipe out those objects which no
longer are used in a program or stay idle for a very long
time. This to free memory space alloted to these
objects.However, it is not guaranteed that all the idle
objects wil be destroyed every time garbage collection
process gets executed.A user can also manually call the
garbage collection to take place by executing System.gc()
method.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between static and abstract class?

991


How do you use compareto?

928


What happens if we don’t override run method ?

989


Is math an abstract class in java?

994


Define jre i.e. Java runtime environment?

991


What is binary tree in java?

1039


Can we serialize static variables in java?

1073


What is variable and its types?

1004


What is a char in java?

1022


What is yield () in java?

862


What is difference between float and double?

949


What is the basic concept of java?

995


What is the difference between Java1.4 and Java1.5

2295


What is parsing in java?

940


Can a constructor be private and how are this() and super() method used with constructor?

977