I have a composite object (tree) with parent-child relationships.The tree can be upto n levels (say for e.g 10-12 levels)
Now suppose i have to remove an object at level 6 in the hierarchy.If i point its reference to null (while leaving the child object untouched) in Java then what happens to the child objects under it (do they become available for garbage collection).