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

Garbage collection is a thread, that runs to reclaim the
memory by destroying objects which object is cannot be
referenced anymore.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

who can i handle multiple client in RMI

1834


Can we pass a primitive type by reference in java? How

855


Can we declare the main method of our class as private?

948


Discuss different types of errors that generally occur while programming.

981


Write a program to reverse a number in java?

1040


What is maximum size of arraylist in java?

957


What’s the difference between callable and runnable?

1021


Can we overload run() method in java?

1118


Can you pass functions in java?

945


What is the main advantage of passing argument by reference?

909


What is predicate in java?

1009


How many bits is a double?

944


What is a double?

1039


Java is pass by value or pass by reference? Explain

933


What is final class?

958