Arithmetic Operators : Arithmetic Operators « Operators « Java Tutorial






OperatorResult
+Addition
-Subtraction (also unary minus)
*Multiplication
/Division
%Modulus
++Increment
+=Addition assignment
-=Subtraction assignment
*=Multiplication assignment
/=Division assignment
%=Modulus assignment
--Decrement










3.4.Arithmetic Operators
3.4.1.Arithmetic Calculations
3.4.2.Arithmetic Operators
3.4.3.The Basic Arithmetic Operators
3.4.4.Demonstrates the mathematical operators
3.4.5.Modulus operator %: obtain the remainder after a division
3.4.6.Applying the modulus operator, %, to floating-point values