Thursday, 18 December 2014

What is Operators in java ?

Operators in java:

Operator is a special symbol that is used to perform operations.

Precedence of Operators:

Operators:                                              Precedence:

postfix                                                           exp++

prefix & uniary                                           ++exp,--exp,+exp,-exp,~,!

multiplicative                                             * / %

additive                                                      +,-

shift                                                           << >> >>>

relational                                                  <  >  <=  >=  instanceof

equality                                                     == !=

bitwise AND                                            &

bitwise exclusive OR                               ^

bitwise inclusive OR                                |

logical AND                                         &&

logical OR                                               ||

ternary                                                   ?  :

assignment                                          = += -= *= /= %= &= ^= |= <<= >>= >>>=


No comments:

Post a Comment