weak reference to object containing a nested strong reference, and garbage collection
Asked 2010-04-06T12:20:02.937
17
Suppose I have a weak reference to a car which has an ordinary (strong) reference to an engine. No other references to the car or the engine exist. Can the engine be garbage collected?