Difference between prefix and postfix forms of the
++operator?
Answer Posted / uday ray
They behave differently when they are used in expressions on
the right hand side of an assignment statement. A prefix
operator first adds 1 to the operand and the result is
assigned to the variable on left. On the other hand, a post
fix operator first assign the value to the variable on left
and then increments the operands.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is an enumeration?
What is unsigned char?
What is the ==?
Can list contain null in java?
How static variable work in java?
Why call by value prevents parameter value change?
What is the method in java?
Explain inner classes ?
What is thread pool in java with example?
Can you override a final method?
Define class?
Can you call a method in a method?
Why object class is super class for every class in java?
What is difference between hashset and hashmap in java?
What is a java developer salary?