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 exception propagation?

1189


What is the final keyword denotes?

1168


Can a private method be declared as static?

1066


What is private public protected in java?

1075


What is the difference between equals() and == in java?

1019


How do you find the maximum number from an array without comparing and sorting?

1177


Explain the reason behind ending a program with a system.exit(0)?

1130


Explain static nested classes ?

1173


What is the primitive type short?

1078


What is java full form?

1098


What is a blocking method in Java?

1315


How to change the priority of thread or how to set the priority of thread?

1091


How do you clear a method in java?

1048


how many types of Inheritance?

1214


What is java argument list?

980