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 the size of boolean variable?

1024


What is consumer interface?

943


What is main function purpose?

962


Tell me the latest versions in java related areas?

1039


What is module in project?

894


Explain what access modifiers can be used for methods?

1029


What does the “static” keyword mean? Can you override private or static method in java?

1036


How objects are stored in java?

975


what is the difference between thread and runnable types? : Java thread

945


What is a class variable?

977


How do you compare two strings lexicographically?

887


What is a Hash Table? What are the advantages of using a hash table?

1034


What is meant by data hiding/encapsulation?

1040


What are inner classes or non static nested classes in java?

1116


What are register variables what are the advantages?

862