P
patrick
An object has been added into a Vector v:
v.add(obj);
Later I want to dispose of the object.
Must it first be removed from the v for garbage disposal
to get rid of it.
Or would setting obj=null; be enough to dispose of it?
v.add(obj);
Later I want to dispose of the object.
Must it first be removed from the v for garbage disposal
to get rid of it.
Or would setting obj=null; be enough to dispose of it?