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

How can I debug the Java security exceptions and AccessControlExceptions?

1091


How do you write methodology?

917


What is use of map in java?

949


What is meant by singleton class?

980


Difference between linkedlist and arraylist.

1018


Is node a data type in java?

942


What is vector?

994


How does class forname work in java?

912


What is core java used for?

1051


How does hashset work in java?

1060


Why are constructors used?

963


what is object-oriented programming in java?

997


Is empty string in java?

1094


what r advatages of websphere? & how to deploy?

2104


What is the differences between heap and stack memory in java? Explain

927