In Test1 i increments its value by 1 and return old value and keep its incremental value in i variable. But in Test2 i increments its value by 1 and return its old value and the increment also occurred. Are they make a copy of i for the increment which is not assigning in the i variable. What is the operational step in Test2.
int i = 0; System.out.print(i++); System.out.print(i);
int i = 0; i = i++; System.out.println(i);