Operators in Java

By | August 8, 2020

Operators in Java:

Operators are special symbols that perform specific operations in Java. Below are the different types of operators present in Java.

1 Arithmetic operators

2. Bitwise operators

3. Relational operators

4. Boolean logical operators

5. Ternary operator.

 

1. Arithmetic operators:

These are used in mathematical expressions.

Operator Description
+ Additions
Subtraction
* Multiplication
/ Division
% Modulus
++ Increment (unary)
Decrement
+= Addition assignment
-= Subtraction assignment
*= Multiplication assignment
/= Division assignment
%= Modulus assignment

Leave a Reply

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