can anybody explain this why its happening
int i=0; i=i++; i=i++; i=i++; System.out.println(i);
it prints zero.
You meant to do this:
int i = 0; i++; i++; i++; System.out.println(i);
i++ actually does an assignment so if you add an = you just confuse things. These other fine responders can give you the nitty gritty, some details of it escape me. :)
i++
=