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...

When is an object in the mean to garbage collection?

Answer Posted / chandrarekha

whenever the object goes out of scope or when it is no
longer being referenced, in such cases it can be a garbage
object. Garbage collection is implicitly invoked whenever
resources have to be allocated to the new objects that are
created and approach to detect a garbage object can be done
through reference-counting collectors,tracing
collectors,compacting collectors. The garbage collectors
can also be explicitly invoked by gc() supported by JVM
which is in the java.lang package

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the preferred size of a component in java programming?

1046


How can we make string upper case or lower case?

1140


What is object english?

1118


Does java return by reference?

1073


What about main() method in java ?

1053


Difference between Linked list and Queue?

1081


How to create a thread in java?

1197


Can a serialized object be transferred via network?

1025


Can size_t be negative?

1247


What does a boolean method return?

1303


Can memory leak in java?

1089


Why wait and notify methods are declared in object class?

1084


What is the difference between method and means?

1127


What is externalizable?

1117


Difference between Preemptive scheduling vs. Time slicing?

1055