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

when there are no refrences to an object,means that it is
not in use anymore.so the JVM marks it for garbage
collection ,which is basically a process of taking back the
resources from the object which was given to it earlier.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main method java?

965


Explain yield() method in thread class ?

1001


What is a Presistent Object?

1165


When should I use singleton pattern?

978


What are operators and its types?

995


What is collection class in java? List down its methods and interfaces.

896


Is java good for beginners?

963


How can a gui component handle its own events?

1039


What is an association?

938


Which api is provided by java for operations on set of objects?

1396


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

925


What is a boolean expression in java?

977


Write a program in java to create a doubly linked list containing n nodes.

906


Can we extend a class with private constructor?

927


What is the use of arrays tostring () in java?

985