public class Testtt { public static void main(String [] args) { int x = 1; System.out.println(x++ + ++x + ++x); } } Result is 8 how it prints 8 .. can any one please explain it ? o.O sorry to ask dumb question but i didnt get how the pre - post increment works