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 are the basic concepts of OOPS in java?

1037


Can you override static methods?

1004


Difference between == and .equals() ?

1006


What are the uses of java?

1094


Explain about the performance aspects of core java?

1058


What is the difference between break and continue statements?

1041


Difference between arraylist and vector.

1132


What are the 8 primitive data types in java?

1024


What is the basic of java?

1029


What is appletviewer?

1038


What are the 8 data types in java?

997


What is java thread dump, how can we get java thread dump of a program?

1007


What are exceptions

1103


What is "this" keyword in java? Explain

1102


Can we override constructors in java?

1147