posted 17 years ago
Hi,
Can you same variable name for member variable and for variables in the method ? Is this because instance variables are on heap and local variables on stack ?
System.out.println(this.i); in the below code prints "10",which shows that static variable has been re-assigned.
How to tackle these type of questions