Advertisements
Advertisements
Question
Distinguish between Postfix decrement and Prefix decrement.
Distinguish Between
Solution
S. No. | Postfix decrement | Prefix decrement |
1. | This operator operates on the basis of 'CHANGE AFTER ACTION'. | This operator operates under the principle of 'CHANGE BEFORE ACTION'. |
2. | Example:
|
Example:
|
shaalaa.com
Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 44]