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 the generic function?
Can we use switch statement with strings?
What restrictions are placed on method overloading in java programming?
What is a variable analysis?
What is difference between adapter class and listener?
What is meant by memory leak?
What is difference between public static and void?
How do you declare an array that will hold more than 64KB of data?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Explain serialization and deserialization in java?
What causes memory leak in java?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is return in java?
What is a class object?
Is hashset sorted in java?