Can you explain to me the output of this Java code?
int a=5,i; i=++a + ++a + a++; i=a++ + ++a + ++a; a=++a + ++a + a++; System.out.println(a); System.out.p
In both cases it first calculates value, but in post-increment it holds old value and after calculating returns it
++a
a++