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.

in assignment conversion context, 93<br />

in casting conversion context, 101<br />

in method invocation conversion context,<br />

99<br />

specification, 80<br />

kinds of, 80<br />

method invocation, 452<br />

in determining applicability, 442, 446,<br />

447<br />

in method invocations, 99<br />

narrowing<br />

primitive<br />

in assignment conversion context, 94<br />

in casting conversion context, 101<br />

not allowed in method invocation<br />

conversion context, reasons for, 95,<br />

100<br />

reference, in casting conversion context,<br />

101<br />

narrowing primitive, 486, 488<br />

reference<br />

narrowing, 85<br />

widening, 85<br />

string, 101, 497<br />

in assert statements, 375<br />

specification, 87<br />

term definition, 77<br />

unboxing, 37, 41, 78, 93, 95, 99, 101, 108,<br />

110, 372, 375, 379, 381, 382, 385,<br />

486, 488, 490, 492, 500, 503, 506,<br />

507, 508, 509, 510, 512<br />

in conditional expression, 512<br />

in overload resolution, 442<br />

term definition, 88<br />

unchecked, 78, 99, 445, 450<br />

term definition, 89<br />

value set, 92, 486, 488, 489, 500, 503<br />

in assignment conversion, 94<br />

in binary numeric promotion, 110<br />

in casting conversion, 101<br />

in method invocation conversion, 99<br />

in overview, 78<br />

term definition, 92<br />

in unary numeric promotion, 108<br />

value-set, 506<br />

widening, 108<br />

primitive, 93<br />

in assignment conversion context, 93<br />

in binary numeric promotion context,<br />

110<br />

in casting conversion context, 101<br />

in method invocation conversion<br />

context, 99<br />

in unary numeric promotion context,<br />

108<br />

reference, 85, 93<br />

in assignment conversion context, 93<br />

in casting conversion context, 101<br />

in method invocation conversion<br />

context, 99<br />

widening primitive, 108<br />

convertible<br />

to a numeric type, 110, 485, 486, 487, 488,<br />

506<br />

in conditional expression, 511<br />

term definition, 89<br />

to a primitive integral type, 508<br />

to a primitive numeric type, 489, 490, 491,<br />

496, 502, 503<br />

to an integral type, 432<br />

term definition, 89<br />

to numeric type, 506<br />

creation<br />

See also declaration; initialization<br />

array, 45, 289<br />

expression evaluation<br />

example, 433<br />

order, 432<br />

out-of-memory detection, example, 434<br />

instance, 45<br />

expression evaluation order, 428<br />

expressions as statements, 371<br />

invocation of initializers for instance variables<br />

during, 324<br />

method dispatching during, 324<br />

specification and procedure, 322<br />

object, 45<br />

of an enum constant, 250<br />

term definition, 251<br />

D<br />

Danforth, Scott, 333<br />

dangling else<br />

See also control flow<br />

607

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

Saved successfully!

Ooh no, something went wrong!