weak references and garbage collection

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-04-06T12:20:02Z Indexed on 2010/04/06 12:23 UTC
Read the original article Hit count: 429

Suppose I have a weak reference to a car which has an ordinary reference to an engine. No other references to the car or the engine exist. Can the engine be garbage collected?

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection