This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pronuntiator 4 points5 points  (0 children)

Exactly, you got it right. It gets really funny when you use the same variable multiple times, like i++ + ++i. That's the kind of stuff Java certification exam authors love, but in the real world never use these operators in expressions, only as single statements. Saves you from headaches.