[프로그래밍언어][Java(자바)] 연산자 - 종류, 우선순위, 결합방향

728x90

 

http://tcpschool.com/java/java_operator_arithmetic

https://www.javatpoint.com/operators-in-java

 

<  Operator  >

 

Priority Operator Type Category Precedence Associativity
1     []  .
2 Unary postfix expr++  expr--
3   prefix ++expr  --expr  +expr  -expr  ~  !
4 Arithmetic multiplicative *  /  %
5   additive +  -
6 Shift shift <<  >>  >>>
7 Relational comparison <  >  <=  >=  instanceof
8   equality ==  !=
9 Bitwise bitwise AND &
10   exclusive OR ^
11   inclusive OR |
12 Logical logical AND &&
13   logical OR ||
14 Ternary ternary ? :
15 Assignment assignment =  +=  -=  *=  /=  %=  &=  ^=  |= 
<<=  >>=  >>>=

 

 

반응형