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

Answer Posted / dhanunjay

I think not so,because that will be reused allocated memory for both....Here not to waste our memory

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data type example?

647


What is the difference between overriding and overloading in OOPS.

661


Which package is always imported by default?

648


Is empty list java?

600


Explain a situation where finally block will not be executed?

670






How variables are declared?

617


Is empty .java file name a valid source file name?

685


What variables are stored in stack?

624


Explain the difference between throw and throws in java?

636


What are serialization and deserialization?

834


Can I override protected method in java?

682


Which is dependent variable?

567


What is unicode datatype?

613


What are the two types of streams offered by java 8?

593


Is static a singleton?

622