Computer Science, asked by manthanjadhav10, 1 year ago

what is decrement operator in Java?​


HarshRaj2885: --

Answers

Answered by kanishk0011
1

Hello,

Here is your answer

Increment (++) and decrement (—) operators in Java programming let you easily add 1 to, or subtract 1 from, a variable. For example, using increment operators, you can add 1 to a variable named a like this: a++; An expression that uses an increment or decrement operator is a statement itself.

Hope it helps you

Answered by vasanthij97
0

In the decrement operator, you can subtract 1 from the variable.

For example : --a

Similar questions