10.12.2012 Views

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

The Java Language Specification, Third Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

15.12.4.4 Locate Method to Invoke 476<br />

15.12.4.5 Create Frame, Synchronize, Transfer Control 477<br />

15.12.4.6 Example: Target Reference and Static Methods 479<br />

15.12.4.7 Example: Evaluation Order 479<br />

15.12.4.8 Example: Overriding 480<br />

15.12.4.9 Example: Method Invocation using super 481<br />

15.13 Array Access Expressions 482<br />

15.13.1 Runtime Evaluation of Array Access 483<br />

15.13.2 Examples: Array Access Evaluation Order 483<br />

15.14 Postfix Expressions 485<br />

15.14.1 Expression Names 485<br />

15.14.2 Postfix Increment Operator ++ 485<br />

15.14.3 Postfix Decrement Operator -- 486<br />

15.15 Unary Operators 487<br />

15.15.1 Prefix Increment Operator ++ 487<br />

15.15.2 Prefix Decrement Operator -- 488<br />

15.15.3 Unary Plus Operator + 489<br />

15.15.4 Unary Minus Operator - 489<br />

15.15.5 Bitwise Complement Operator ~ 490<br />

15.15.6 Logical Complement Operator ! 490<br />

15.16 Cast Expressions 490<br />

15.17 Multiplicative Operators 491<br />

15.17.1 Multiplication Operator * 492<br />

15.17.2 Division Operator / 493<br />

15.17.3 Remainder Operator % 495<br />

15.18 Additive Operators 496<br />

15.18.1 String Concatenation Operator + 497<br />

15.18.1.1 String Conversion 497<br />

15.18.1.2 Optimization of String Concatenation 498<br />

15.18.1.3 Examples of String Concatenation 498<br />

15.18.2 Additive Operators (+ and -) for Numeric Types 500<br />

15.19 Shift Operators 502<br />

15.20 Relational Operators 503<br />

15.20.1 Numerical Comparison Operators = 503<br />

15.20.2 Type Comparison Operator instanceof 504<br />

15.21 Equality Operators 505<br />

15.21.1 Numerical Equality Operators == and != 506<br />

15.21.2 Boolean Equality Operators == and != 507<br />

15.21.3 Reference Equality Operators == and != 507<br />

15.22 Bitwise and Logical Operators 508<br />

15.22.1 Integer Bitwise Operators &, ^, and | 508<br />

15.22.2 Boolean Logical Operators &, ^, and | 508<br />

15.23 Conditional-And Operator && 509<br />

15.24 Conditional-Or Operator || 509<br />

15.25 Conditional Operator ? : 510<br />

15.26 Assignment Operators 512<br />

15.26.1 Simple Assignment Operator = 513<br />

15.26.2 Compound Assignment Operators 518<br />

xix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!