Operator Precedence in Java

The table below defines operator precedence (and associativity) in Java. Hover on any of the operators in the precedence table for further information.

A bullet () represents the operand in unary versions of some operators, for disambiguation.

JLS Syntactic Token
(highest-to-lowest)
Numerical
,
Integer Bitwise
,
Boolean Logical
,
Conditional
,
Other
and
Type-Related

Operators
As.
TypeDeclSpecifier
.
LTR
Primary (Expression)
.
(args)
()
[]
new
.this
.class
PostfixExpression
++
--
UnaryExpression
++
--
+
-
~
!
(type)
RTL
MultiplicativeExpression
*
/
%
LTR
AdditiveExpression
+
+
-
ShiftExpression
<<
>>
>>>
RelationalExpression
<
>
<=
>=
instanceof
EqualityExpression
==
!=
==
!=
==
!=
AndExpression
&
&
ExclusiveOrExpression
^
^
InclusiveOrExpression
|
|
ConditionalAndExpression
&&
ConditionalOrExpression
||
ConditionalExpression
? :
RTL
AssignmentExpression
=
+=
*=
/=
%=
+=
-=
<<=
>>=
>>>=
&=
^=
|=
&=
^=
|=

Note 1: This is indeed the correct precedence for the 'new' operator. See this.

Java not your language? Select a different programming language.

Questions, comments ==> info (at) (this domain)

Other quick-reference sites:   db9-pinout.com | resistor-color-codes.com | hex-codes.com

Cheap NFL Jerseys Cheap NFL Jerseys goedkope air max online Basket Air Jordan 11 Christian Louboutin Outlet Cheap Jerseys Wholesale Jerseys Michael Kors Outlet Online Ray Ban Sunglasses Jerseys Wholesale Coach Outlet Store michael jordan air jordan 11 Coach Outlet Cheap NFL Jerseys Kate Spade Outlet Sale air max 90 pas cher junior Wholesale Jerseys Jerseys Cheap nba jerseys vegas Jerseys Wholesale China