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

Which is the best sorting technique in java?

930


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

990


How many types of gc are there in java?

932


How many types of java are there?

927


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1083


What is merge sort in java?

913


State the difference between strings and arrays.

1138


Explain numeric promotion?

1024


How do you create a null object?

1024


What are desktop procedures?

999


Is null function in java?

976


What state is a thread in when it is executing?

903


How to remove the trailing spaces from a string?

1172


What is the difference between class & structure?

1120


What is bean? Where it can be used?

1023