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

why would you use a synchronized block vs. Synchronized method? : Java thread

998


Why is java called the platform independent programming language?

1059


What is string made of?

1017


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

1059


What is callablestatement? How you can call stored procedure to pass in parameter?

1068


How to make a non daemon thread as daemon?

1114


How do you write a conditional statement?

1011


What are the application of stack?

985


How many threads can java run?

1167


Which class contains a method: cloneable or object?

1095


What are the string methods in java?

1133


Describe the term diamond problem.

1091


what are the methods in object?

1205


In java, how many ways you can take input from the console?

1041


How to connect to a remote database using Applet?

2606