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
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earthhttps://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter