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

how to write a server program and sending the mails to the server using smtp protocol please help me

2066


Can we catch more than one exception in single catch block?

1051


What does @override mean?

1205


What are parsing rules?

994


Explain thread life cycle in java?

1035


Can we catch more than one exception in a single catch block?

1077


Can we sort arraylist in java?

992


What do you mean by thread safe?

975


What is 16 bits called?

946


What is meant by attribute?

1125


Write an algorithm for quick sort?

1032


What is the loop in java?

1148


How do you create a sop?

1004


What is member in java?

1022


How do you define a variable?

943