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 final class?

1067


Can a class have multiple superclasses?

1174


Can we have try block without catch block?

1038


Can a string be null?

995


What is difference between static class and singleton pattern?

1036


Can we serialize static variables in java?

1100


What is logical variable?

990


What is difference between static class and normal class?

1125


What is the major advantage of external iteration over internal iteration?

1112


What is the effect of keeping a constructor private?

957


explain what is transient variable in java?

1148


What is the use of toarray () in java?

1076


What is unmodifiable list in java?

968


What programs use java?

967


What is the java reflection api? Why it’s so important to have?

989