JAVA

Arithmetic Operators

Java supports following arithmetic operator.

Operator Description Usage Example
* Multiplication a * b 2 * 3 → 6
/ Division a / b 10 / 5 → 2
% Modulus (return Reminder of Division) a % b 10 % 5 → 0
+ Addition (or unary positive) a + b 5 + 2 → 7
- Subtraction (or unary negative) a - b 5 - 2 → 3



Subscribe us on Youtube

Share This Page on


Ask Question