in Java,which of the following is
known as unary operators for
increment and decrement operators?
+ + and
>== and <=
== and !=
+ and -
Answers
Answered by
0
Answer:
In Java, unary arithmetic operators are used to increasing or decreasing the value of an operand. Increment operator adds 1 to the value of a variable, whereas the decrement operator decreases a value.
Explanation:
val++;
val--;
These two operators have two forms: Postfix and Prefix. Both do increment or decrement in appropriate variables. These two operators can be placed before or after of variables. When it is placed before the variable, it is called prefix. And when it is placed after, it is called postfix.
Similar questions