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.

CONVERSIONS AND PROMOTIONS Unary Numeric Promotion 5.6.1<br />

Unary numeric promotion is performed on expressions in the following situations:<br />

• Each dimension expression in an array creation expression (§15.10)<br />

• <strong>The</strong> index expression in an array access expression (§15.13)<br />

• <strong>The</strong> operand of a unary plus operator + (§15.15.3)<br />

• <strong>The</strong> operand of a unary minus operator - (§15.15.4)<br />

• <strong>The</strong> operand of a bitwise complement operator ~ (§15.15.5)<br />

• Each operand, separately, of a shift operator >>, >>>,or

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

Saved successfully!

Ooh no, something went wrong!