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 / pranab dutta

When a Java object becomes unreachable to the program, then
it is subjected to garbage collection. The main use of
garbage collection is to identify and discard objects that
are no longer needed by a program so that their resources
can be reclaimed and reused.

Is This Answer Correct ?    324 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of abstract class?

950


What is an exception? difference between Checked and Unchecked exception in Java

1013


Define Multiprogramming and Multiprocessing in java.

1151


Is arraylist zero based?

1069


Is void a data type?

958


Which method cannot be overridden in java?

996


Explain the importance of finalize() method.

969


What is tostring () method?

1034


how to write a server program and sending the mails to the server using smtp protocol please help me

2066


What do you mean by JVM?

1081


Can each java object keep track of all the threads that want to exclusively access it?

952


What is the relationship difference the canvas class and the graphics class?

1060


If an object is garbage collected, can it become reachable again?

1000


What are the advantages of defining packages in java?

987


What is the difference between heap memory and stack memory?

1073