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 immutable in java?

1016


Which sorting is best in java?

963


What is the use of java?

905


How can we make a class virtual?

1069


What is a double vs float?

953


do I need to use synchronized on setvalue(int)? : Java thread

965


What is sortedmap in java?

987


Can an interface extend a class?

932


Can you access non static variable in static context?

994


What is the difference between import java.util.date and java .util?

1012


How can we use primitive data types as objects?

910


Why is a singleton bad?

915


Can we return null in java?

1077


How static variable work in java?

1068


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

889