class counter{
int i=10;
public static void main(String args[]){
counter c1 = new counter();
c1.i=c1.i++;
System.out.println(c1.i);
}}
When I checked o/p is 10. I thought it first assigns the value to the variable and then increments , if this is the case 10 should have been put in i and the same variable should be incremented to show the result as 11.