Understanding Arithmetic Operators in Java: A Comprehensive Guide

 

Understanding Arithmetic Operators in Java: A Comprehensive Guide


OperatorOperator is a symbol which are used to perform particular operation. In java language these opeatrs are classified into following types.
1.Unary Operators
2.Binary Operators
3.Ternary Operators

Unary Operator:If any operation perform on single operand (Variable) is known as uanry operator.
These operators are classified into following types.
1.Unary Minus Operator
2.Increment Operator
3.Decrement Operator

  1. Unary Minus:Unary minus means sign value or minus value
    Example:
    int x=10;
    then -x=-10;
https://sateeshm.com/java-operators.html

https://sateeshm.com/java-operators.html


Comments