Operator
Precedence
Table 4-1 shows the order of
precedence for Java operators, from highest to lowest. Operators in the same
row are equal in precedence. In binary operations, the order of evaluation is
left to right (except for assignment, which evaluates right to left). Although
they are technically separators, the [ ],
( ), and . can also act like operators. In that capacity, they would have
the highest precedence. Also, notice the arrow operator (->). It was added
by JDK 8 and is used in lambda expressions.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.