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
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
How is abstraction implemented in java ?
What are advantages of using Java?s layout managers than windowing systems?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is jit and its use?
Which non-unicode letter characters may be used as the first character of an identifier?
What is a java lambda expression?
What are the super most classes for all the streams?
What is tostring () method?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is data structure in java?
Can a class declared as private be accessed outside it’s package?
Which is faster string or stringbuilder?
How can u increase the heap size in the memory?
In case of inheritance what is the execution order of constructor and destructor?