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 synonym of framework?

985


What carriage return means?

949


What is binary tree in java?

1039


What is unicode full form?

960


What are the differences between the constructors and methods?

1097


What are Normalization Rules? Define Normalization?

1028


Explain jdk, jre and jvm?

957


What is empty list in java?

1062


What are wrapper classes in java?

1050


How arrays are stored in memory in java?

964


How many characters is 16 bytes?

979


How many types of voids are there?

962


Why multiple inheritance is not supported by java?

964


What are some alternatives to inheritance?

1078


Is object a data type in java?

1100