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

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 ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between final, finally and finalize() in java?

1241


Difference between stack and queue?

1139


What is compareto () in java?

1024


What is locale in java?

1061


How do you start a new line in java?

1037


How we can declare a static variable?

1151


Explain public static void main(string args[]) in java.

1049


Why can't we override private static methods?

1020


Why java uses the concept of the string literal?

1108


Can we create object of static class?

1079


Explain thread in java?

1233


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1219


What is the purpose of finalization in java programming?

1072


What is the symbol for space?

1045


What do you mean by Function Overloading in java?

1223