When i run the following example i get the output 0,2,1
class ZiggyTest2{ static int f1(int i) { System.out.print(i + \",\");
In Post increment operator value will of operand will increase after use. Example
int k =1; int l = k++; System.out.println("...k..."+k+"...l.."+l);
First k (value = 1) is assigned with l after that the k value will increase
Similarly thing happens in the following line
i = i++ + f1(i);