Anil Philip wrote:The increment operators . . . have identical effects . . . Is my understanding correct?
Afraid not. Since you are sitting a cert. exam, you will need to know the differences because cert. exams use
i++ and
++i,
etc., in larger expressions where the differences are there to confuse you. There are only a few instances where use of those operators as part of a larger expression doesn't count as bad programming. Or good programming for cert. exams!
You will find those examples in
Effective Java by Joshua Bloch, but I haven't got the time now to find the page number (sorry).