Operators in Java

 

Operators in Java Programing:

  • Unary Operator,

  • Arithmetic Operator,

  • Shift Operator,

  • Relational Operator,

  • Bitwise Operator,

  • Logical Operator,

  • Ternary Operator and

  • Assignment Operator.

     


    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= += -= *= /= %= &= ^= |= <<= >>= >>>=

     

Popular posts from this blog

Simple Counting App Using Kotlin