unable to make out this assignment in java

Posted by Ankit Sachan on Stack Overflow See other posts from Stack Overflow or by Ankit Sachan
Published on 2010-03-04T05:47:31Z Indexed on 2010/04/11 19:43 UTC
Read the original article Hit count: 332

Filed under:

Hello,

can anybody explain this why its happening

int i=0;
i=i++;
i=i++;
i=i++;
System.out.println(i);

it prints zero.

© Stack Overflow or respective owner

Related posts about java