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 / syed sikandar bakht

when an object in memory is no longer refered by a variable,
the garbage collector automatically move it to garbage
collection.
instead of calling destructor JVM do it automatically, as we
use destructor in c++ to destroy the object.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you sort a list in java?

982


Explain the difference between hashmap and hashtable in java?

944


What is an interoperable application in java ?

1005


How many ways can an argument be passed to a subroutine and explain them?

1030


What are some examples of variable costs?

956


What is lexicographically smallest string?

1068


Write a program in java to find the maximum and minimum value node from a circular linked list.

1087


What is difference between jdk,jre and jvm?

1125


Which is faster call by value or call by reference?

943


How many types of array are there?

1008


What is lambda expression in java?

1044


How do you trim a space in java?

983


What about main thread in java?

1123


What happens when heap memory is full?

993


Which is better singleton or static class?

987