Java operators are the symbol that takes one or more arguments and operates on them to produce a result.
S.No | Operator Category | Operator Symbols | Operator Name |
---|---|---|---|
Arithmetic Operators | + - * / % | Addition Subtraction Multiplication Division Modulus | |
Relational/Comparison operators | > < >= <= != == | Greater than Less than Greater than equals to Less than equals to Not equals to Equal, Equals to | |
Logical operators | && || ! | And Or Not | |
Assignment operators | = += -= *= /= | Assignment Operator Addition Assignment Subtraction Assignment Multiplication Assignment Divide Assignment | |
Increment/Decrement operators | a++ ++a a-- --a | Post Increment Pre-Increment Post Decrement Pre-Decrement | |
String operators | . .= | Concatenation Concatenation assignment | |
Conditional or Ternary Operator | ? : | Ternary Operator | |
Bitwise Operator | & | >> << ^ | AND OR Left Shift Right Shift Exclusive OR | |
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 |