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

Can we serialize singleton class?

1033


Is string passed by reference in java?

999


What is bytecode verifier?

939


What is the difference between scrollbar and scrollpane?

1084


Explain public static void main(string args[]).

1180


What are the ways in which a thread can enter the waiting state?

942


what is inner class in java?

1132


Explain the importance of finally over return statement?

1043


Why vector is used in java?

1025


What is the syntax and characteristics of a lambda expression?

1042


What does string intern() method do?

1081


How can we create an immutable class in java?

1066


What if static is removed from main method?

1070


What is thread safe singleton?

943


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

2166