> i = i++;
> SOP (i);
>}
>
>why it is printing 10 instead of 11 ??
because you are tormenting the compiler with deliberately ambiguous
code. It would require the JLS and a language lawyer to figure out
what is supposed to happen. Don't do that. There is never any need for
goofy code like that.
write simply
i++;
SOP is presumably a method not a class, so it should be called sop.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Knute Johnson - 17 Feb 2006 06:13 GMT
> SOP is presumably a method not a class, so it should be called sop.
Secret code for System.out.println :-).

Signature
Knute Johnson
email s/nospam/knute/