Difference Between Prefix Increment and Postfix Increment Operators
Figure 4.15 demonstrates the difference between the prefix increment and postfix increment versions of the ++
increment operator. The decrement operator (--
) works similarly.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.