Arithmetic Operators in Java
Arithmetic operators in Java are used to perform mathematical operations. The arithmetic operators in Java can operate on any built-in data type. Syntax:- operand1 operator operand2 Operator Meaning + Addition – Subtraction * Multiplication / Division % Modulus The unary minus operator has the effect of multiplying its operand by -1. Example:- 8*(-1) = (-8) […]
Arithmetic Operators in Java Read More »