`
liujiawinds
  • 浏览: 132253 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Java operator precedence

    博客分类:
  • java
 
阅读更多

 

Operator Description Level Associativity
[]
.
()
++
--
access array element
access object member
invoke a method
post-increment
post-decrement
1 left to right
++
--
+
-
!
~
pre-increment
pre-decrement
unary plus
unary minus
logical NOT
bitwise NOT
2 right to left
()
new
cast
object creation
3 right to left
*
/
%
multiplicative 4 left to right
+ -
+
additive
string concatenation
5 left to right
<< >>
>>>
shift 6 left to right
<  <=
>  >=
instanceof
relational
type comparison
7 left to right
==
!=
equality 8 left to right
& bitwise AND 9 left to right
^ bitwise XOR 10 left to right
| bitwise OR 11 left to right
&& conditional AND 12 left to right
|| conditional OR 13 left to right
?: conditional 14 right to left
  =   +=   -=
 *=   /=   %=
 &=   ^=   |=
<<=  >>= >>>=
assignment 15 right to left

 

 

 

 

 

分享到:
评论

相关推荐

    《Pearson.Java.How.To.Program.late.objects.version.10th.Edition》 高清完整英文PDF版

    Java How to Program (Late Objects...Appendix A: Operator Precedence Chart Appendix B: ASCII Character Set Appendix C: Keywords and ReservedWords Appendix D: Primitive Types Appendix E: Using the Debugger

    The C Cheat Sheet - An Introduction to Programming in C

    4.10 Operator Precedence and Association 5.0 Program Structure 5.1 Declaring Functions 5.2 Calling Functions 5.3 Local Variables 5.4 Global Variables 6.0 Advanced Data Types 6.1 Arrays 6.2 ...

    Thinking in Java 4th Edition

    Precedence ........................... 64 Assignment .......................... 65 Aliasing during method calls ....... 66 Mathematical operators....... 67 Unary minus and plus operators ................

    Csharp.6.for.Programmers.6th.Edition

    The professional programmer’s Deitel® guide to C# 6 and object-oriented development for Windows® ...Appendix A: Operator Precedence Chart Appendix B: Simple Types Appendix C: ASCII Character Set

    Addison.Wesley.C++.by.Dissection.2002.pdf

    2.7.1 Precedence and Associativity of Operators.. . 45 2.7.2 Relational, Equality, and Logical Operators.. . 47 2.8 Statements......... . . 50 2.8.1 Assignment and Expressions..... . . . 51 2.8.2 The ...

    Professional C# 3rd Edition

    Operator Precedence 137 Type Safety 137 Type Conversions 138 Boxing and Unboxing 141 Comparing Objects for Equality 142 Comparing Reference Types for Equality 142 The ReferenceEquals() Method 142 The ...

    Scala for the Impatient 2nd (完整英文第二版 带书签)

    1.4 Arithmetic and Operator Overloading 6 1.5 More about Calling Methods 8 1.6 The apply Method 9 1.7 Scaladoc 10 Exercises 15 2 CONTROL STRUCTURES AND FUNCTIONS A1 17 2.1 Conditional Expressions 18 ...

    infixOperations:评估中缀操作

    Precedence Level || Operator(s) 1 Lowest Priority || -,+ 2 Normal Priority || *,/,^ 3 Highest Priority || (,) 作者 由Gabriel Queiroz开发 新奥尔良大学。 计算机理论简介-CSCI3102-2014年秋季

    专案_2A

    调用包括适当解决表达式所需的所有内容的EvaluateEquation方法方法Evaluation包括多种解决表达式的方法Precedence方法返回一个int值,以确定表达式方程式方法中运算符的运算顺序的优先级,从而评估表达式的每个部分...

    python3.6.5参考手册 chm

    PEP 465 - A dedicated infix operator for matrix multiplication PEP 448 - Additional Unpacking Generalizations PEP 461 - percent formatting support for bytes and bytearray PEP 484 - Type Hints PEP ...

    SPCC:系统编程和编译器构建程序

    系统编程和编译器构建程序该存储库包含一些为“系统编程和编译器构造”课程编写的程序 :laptop:内容

Global site tag (gtag.js) - Google Analytics