Question: Passing a variable to an Array then setting the variable to null. Is it eligible for garbage collection? thanks
Sagar Sharma
Ranch Hand
Joined: Aug 31, 2000
Posts: 92
posted
0
hi, if it is an array of objects then setting the reference to null should make it available for GC. The arrray however holds the reference(null) to the object. Hope it helps!!! Sagar