Scoping rules for instance variables in Java