This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Please have a look at assembly level intially i = 10; i = i++ can be split as load i on stack; \\top = 10 increment the variable locally for i++; \\ i = 11 now store the value on top of stack into i; \\ i = 10; So the final result is i = 10; For i++ instruction the value is not brought to the stack,but incremented at the location through inc 1
But if i = i + 1, then load i on stack; \\ top = 10 add one to top of stack; \\top = 11 (10+1) store the value on top of stack into i; \\ i = 11
On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.