DEVFYI - Developer Resource - FYI

What is the difference between the prefix and postfix forms of the ++ operator?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

345. What is the difference between the prefix and postfix forms of the ++ operator?

The prefix form performs the increment operation and returns the value of the increment operation. The postfix form returns the current value all of the expression and then performs the increment operation on that value.

(Continued on next question...)

Other Interview Questions