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

If circular link of two objects, then will it be garbage
collected ?

Answer Posted / rt

Yes it will be garbage collected.

e.g.

public void testMethod(){
A a= new A();
B b = new B();

a= b;
b= a;

}
After above method get executed Object a & b will be garbage
collected.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is io stream in java?

1049


What are access specifiers available in java?

1002


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

2090


Which number is denoted by leading zero in java?

1237


What are kinds of processors?

991


How to overcome the exception object reference not set to an instance of object?

1146


Describe the process as to how substring() methodology mechanisms in java.

1117


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

984


What is linkedlist in java?

999


Why do we override tostring method in java?

959


What do you understand by soft reference?

1037


Can private members of a base class are inheritable justify?

924


Difference between collection, collection and collections in java?

1010


What is the use of toarray () in java?

1063


What is the difference between access specifiers and access modifiers in java?

1166