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 arraylist e in java?

1000


How to use Media tracker Class.

1081


Difference between a class and an object?

965


Write a program to reverse a number in java?

1039


What is immutable data?

992


What is anti pattern in programming?

908


When should you use arraylist and when should you use linkedlist?

871


Difference between process and thread?

987


How do you execute a thread in java?

902


What about main thread in java?

1060


Explain java code for recursive solution's base case?

970


Can a class be private?

912


How to retrieve data from database in java using arraylist?

991


Can we clone singleton object?

1008


Which is easier netbeans or eclipse?

1008