Ankur kothari wrote:
when the program reaches line 8
Ankur kothari wrote:this invisible objects topic confused me....the topic above it said that when the method returns it goes out of scope and object can be gc
in invisible objects topic it said that the object will be weakly held even after the block finishes...what is weak and string doing here?
can someone please clear my doubt
Ankur kothari wrote:hey but can we access the objref referecne outside the if loop? doesnt being able to acess the variable and scope be the same thing?
or do you mean variables are stored only in the stacks with the methods they are in and stay there until the method gets over...or returns