Chinaunix首页 | 论坛 | 博客
  • 博客访问: 198877
  • 博文数量: 69
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-03 11:35
文章分类

全部博文(69)

文章存档

2011年(13)

2010年(46)

2009年(10)

我的朋友

分类: Java

2010-07-15 13:45:20

JLS100715Note on JLS, Ch15

 

@ http://zcatt.cublog.cn

 

Hist:

1007015, draft

 

 

 

Chapter 15 Expressions(表达式)

Evaluation, Denotation, and Result

 

Variables as Values

 

Type of an Expression

 

FP-strict Expressions

 

Expressions and Run-Time Checks

 

Normal and Abrupt Completions of Evaluation

 

Evaluation Order

 

Evaluate Left-Hand Operand First

 

Evaluate Operands before Operation

 

Evaluation Respects Parentheses and Precedence

 

Argument Lists are Evaluated Left-to-Right

 

Evaluation Order for Other Expression

 

Primary Expressions

 

Class Instance Creation Expressions

 

Array Creation Expressions

 

Field Access Expressions

 

Method Invocation Expressions

 

Array Access Expressions

 

Postfix Expressions

 

Unary Operators

 

Cast Operators

 

Multiplicative Operators

 

Additive Operators

 

Additive Operators

 

Shift Operators

left shift <<, signed right shift >>, and unsigned right shift >>>.

 

Relational Operators

< > <= >= instanceof

 

Equality Operators

== !=

If the operands of an equality operator are both of either reference type or the null type, then the operation is object equality. At runtime, the result of == is true if the operand values are both null or both refer to the same object or array; otherwise, the result is false. While == may be used to compare references of type String, such an equality test determines whether or not the two operands refer to the same String object. The content of two strings s and t can be tested for equality by the method invocation s.equals(t).

 

Bitwise and Logical Operators

&  ^  |

 

Conditional-And Operator &&

 

Conditional-Or Operator ||

 

Conditional Operator ?:

 

Assignment Operators

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

 

 

 

 

 

 

 

 

REF

1.       JLS 3nd

2.       JVM 2nd
Locations of visitors to this page

阅读(1094) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~