Hi
Lets say we have an object
and we write following lineCode:MyClass o = new MyClass();
What will be the effect of assigning a null to some object. Will the actual object allocated on heap be cleaned or just the reference to that object on heap be cleaned and the actual object on heap will be cleaned when Garbage Collector runs?Code:o = null;




Reply With Quote