Arithmetic

Arithmetic Operator

The Java programming language provides operators that perform addition, subtraction, multiplication, and division. There’s a good chance you’ll recognize them by their counterparts in basic mathematics.

The only symbol that might look new to you is “%“, which divides one operand by another and returns the remainder as its result.

Operator Description
+ Additive operator (also used for String concatenation)
Subtraction operator
* Multiplication operator
/ Division operator
% Remainder operator

Leave a comment

Your email address will not be published. Required fields are marked *

18 + fourteen =