An operator is a symbol that takes one or more arguments and operates on them to produce a result.
Java built-in operators are of following types:
S.No.
Operator Name
Operator Symbol
1.
Arithmetic Operators
+
Addition
-
Subtraction
/
Division
*
Multiplication
%
Modulus
2.
Comparison/Relational Operators
>
Greater than
<
Less than
>=
Greater than equals to
<=
Less than equals to
!=
Not equals to
==
Equals to
3.
Logical Operators
&&
And
||
Or
!
Not
4.
Assignment Operator
=
Assignment
5.
Compound Assignment Operators
+=
Add and Assignment
−=
Subtract and Assignment
*=
Multiply and Assignment
/=
Divide and Assignment
%=
Modules and Assignment
6.
Increment/Decrement Operator
a++
Post Increment
++a
Pre Increment
a--
Post Decrement
--a
Pre Decrement
7.
Conditional or Ternary Operator
? :
8.
Bitwise Operators
&
AND
|
OR
>>
Left Shift
<<
Right Shift
^
Exclusive OR
9.
InstanceOf
the instance of is an object reference operator that allow us to determine whether the object belongs to a particular class or not. The instance of operator return true if the object is an instance of a class