Ankur kothari wrote:
when the program reaches line 8
Sage of The Monstrous Toad of Mount Myoboku
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
SCJP 6
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
SCJP 6
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
SCJP 6
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |