Hi Eeshwar,
This is called as hiding instance variable.
Code that uses a field access expression to access field x will access the field named x in the class indicated by the type of reference expression.
Detailed explanation for this behavior is given
here