Header Ads

Header ADS

Java operators, what are operators in java, operators in java

Operators in java:-


Operators in java,what are the Operators in java
Operators in java


Operators in java is a symbol that is used to perform operations. For example: +, -, *, / etc.

There are many types of operators in java which are given below:
  • Unary Operator,
  • Arithmetic Operator,
  • Shift Operator,
  • Relational Operator,
  • Bitwise Operator,
  • Logical Operator,
  • Ternary Operator and
  • Assignment Operator.

Java Operator Precedence

Operator TypeCategoryPrecedence
Unarypostfixexpr++ expr--
prefix++expr --expr +expr -expr ~ !
Arithmeticmultiplicative* / %
additive+ -
Shiftshift<< >> >>>
Relationalcomparison< > <= >= instanceof
equality== !=
Bitwisebitwise AND&
bitwise exclusive OR^
bitwise inclusive OR|
Logicallogical AND&&
logical OR||
Ternaryternary? :
Assignmentassignment= += -= *= /= %= &= ^= |= <<= >>= >>>=

No comments

for more information plz do comment and follow my blog.

Powered by Blogger.