B
bkazlak
Hello,
I have a quick question might help me understand garbage collection.
let's say I'm having a static collection of objects in one class, so
this collection should be cached and present all time. Now if a method
in another object clones this collection, when would be the cloned
collection eligible for garbage collection? when the method goes out of
scope?
thank you.
I have a quick question might help me understand garbage collection.
let's say I'm having a static collection of objects in one class, so
this collection should be cached and present all time. Now if a method
in another object clones this collection, when would be the cloned
collection eligible for garbage collection? when the method goes out of
scope?
thank you.