Hi senthilnathan,
when you issue the command
i = i++;
first it will assign the old value of 'i' (ie., 11) to the i and then it will add 1 to the old value.
so, when you print the i, it will print 11 only.
you just modify the code slightly as follows and
test int j = i++;
System.out.println("the value of i ==> " + i);
now it will print 12. because you are assiging the old value of i to the seprate variable 'j'.
Thanks & Regards,
Loga