Arithmetic operators java

Опубликовано: 20 Ноябрь 2026
на канале: JavaLight
148
1

Arithmetic operators are used for computations as well as in algebra. Valid operands must be numeric types. For example, you can not use these operators to work with logical types, but you can work with the char type, because in Java, char is a subset of type int.
Addition + = Addition with assignment;
Subtraction (also unary minus) - = Subtraction with assignment;
Multiplication * = Multiplication with assignment;
/ Division / = Division with assignment;
% Modulo division% = Division modulo assignment;
++ Increment - Decrement