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 ctrl m character?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
what is a green thread? : Java thread
What is abstract class? Explain
Can You Have Virtual Functions In Java?
Does sprintf add a null terminator?
What is threaded programming and when is it used? : Java thread
What is exception hierarchy in java?
What is collections framework?
What is regex in java?
Difference between == and .equals() ?
What are internal and external variables?
What is type parameter in java?
What is parsing in grammar?
What are the types of sockets in java?