The operator taking two operands is called binary operators.
There are different binary operators are as follows :
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.
The + operator can also be used for concatenating (joining) two strings together, as shown in the following program:
s3=JavaRace❮ Previous Next ❯