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

Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.

Deleting Dynamically created objects from the memory.

Finalize method used to achieve garbage collection.

By using Runtime.gc() or System.gc() the object will be
garbage collected.

Is This Answer Correct ?    30 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string data type?

964


What is the importance of finally block in exception handling?

1023


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1996


What’s a deadlock?

1096


What is the purpose of the system class in java programming?

1086


What is default exception handling in java?

1024


What is the latest version of java?

1124


What is the difference between serializable and externalizable interfaces?

1087


What is the purpose of garbage collection in java? When is it used?

1041


Explain a few methods of overloading best practices in java?

975


Write the algorithm to check the number non-leaf nodes in a tree.

1058


In how many ways we can do exception handling in java?

989


What is a nullable field?

1032


What is stringwriter?

948


What is bufferedwriter?

968