posted 22 years ago
Also, adding to what Ramki said, local variable, already declared in an enclosing block and therefore visible in a nested block, cannot be redeclared in a nested block. A local variable in a block can be redeclared in a block if the blocks are disjoint.
But this is not the case when the local & member variable have same name. Local variable shadows the member variable and takes priority.
Regards
Shweta
--Shweta<br />SCJP 1.4 <br />SCWCD