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

Are primitives objects?

1044


Explain restrictions for using anonymous inner classes?

1079


What is factor r?

957


How do you remove an object from an arraylist in java?

957


How many types of memory areas are allocated by JVM in java?

1064


How would you dynamically allocate memory to an array?

1033


What is difference between == and === in js?

1002


What sorting algorithm does javascript use?

976


What is string data type?

964


How do you implement polymorphism in our day to day life?

3225


What is the size of arraylist in java?

1015


Explain the term virtual machine?

1038


Does hashset allow duplicates in java?

1109


What does a method signature consist of?

975


State the significance of public, private, protected class?

1098