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

Can an object be garbage collected while it is still
reachable?

Answer Posted / sudheer

Garbage collector is a low priority thread. We cant order to delete an object. When the object has no references and object which are out of scope will be deleted by the garbage collector to free the memory. So when an object is reachable it cant be garbage collected.

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 lastindexof in java?

1178


What is difference between calling start() and run() method of thread?

1215


Is a char always 1 byte?

1050


Why is java logo a cup of coffee?

1257


What lambda means?

1068


Why synchronization is important in java?

1084


Is list thread safe in java?

974


How can we pass argument to a function by reference instead of pass by value?

1169


What are the new features in java 8?

1074


What is super keyword explain with example?

1354


What is double parsedouble in java?

1144


State some situations where exceptions may arise in java?

1105


How do I type unicode?

1029


Can java inner class be static?

1077


Explain what access modifiers can be used for variables?

1111