AppendixB.Java Operator Precedence Rules


Appendix B. Java Operator Precedence Rules

The table in this appendix lists the complete set of operators.[1] Operators grouped on the same line have the same precedence. The table orders precedence groups from highest to lowest. In contrast with the binary operators + and -, the unary operators + and - are used in conjunction with a numeric literal or variable to express whether it is positive or negative.

[1] [Arnold 2000].

postfix

[] . () ++

unary

++ + -

creation, cast

new (class)reference

multiplicative

* / %

additive

+ -

shift

<< >> >>>

relational

< > >= <= instanceof

equality

== !=

and

&

exclusive or

^

inclusive or

|

conditional and

&&

conditional or

||

ternary (conditional)

?:

assignment

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




Agile Java. Crafting Code with Test-Driven Development
Agile Javaв„ў: Crafting Code with Test-Driven Development
ISBN: 0131482394
EAN: 2147483647
Year: 2003
Pages: 391
Authors: Jeff Langr

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net