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
What is io stream in java?
What are access specifiers available in java?
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
Which number is denoted by leading zero in java?
What are kinds of processors?
How to overcome the exception object reference not set to an instance of object?
Describe the process as to how substring() methodology mechanisms in java.
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is linkedlist in java?
Why do we override tostring method in java?
What do you understand by soft reference?
Can private members of a base class are inheritable justify?
Difference between collection, collection and collections in java?
What is the use of toarray () in java?
What is the difference between access specifiers and access modifiers in java?