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.

definite assignment before, 548<br />

determining immediately enclosing instance<br />

when instantiating, 426<br />

example(s), 204, 245<br />

exceptions in instance initializer, 202, 238,<br />

301<br />

in an explicit constructor invocation, 245<br />

implicitly defined by enum constant, 250<br />

interaction with shadowing of parameter<br />

names, 212<br />

in an interface variable initializer, 265<br />

protected accessibility of superclass constructor,<br />

140<br />

supertypes classified as type names, 128<br />

term definition, 424<br />

applicable<br />

by method invocation conversion, 442<br />

term definition, 446<br />

by subtyping, 442<br />

term definition, 445<br />

constructor, 451<br />

potentially, 442, 446<br />

variable arity method, 442<br />

variable-arity method<br />

term definition, 447<br />

argument<br />

See also parameters<br />

lists, evaluation order, 418<br />

values, method invocation conversion context,<br />

99<br />

arithmetic<br />

See also floating point; integers; numbers;<br />

operators; primitive types<br />

integer division, ArithmeticException,<br />

414<br />

operators, numeric promotion, specification,<br />

108<br />

arrays<br />

See also classes; data structures<br />

(chapter), 287<br />

access, 289<br />

expression evaluation order, 483<br />

assignment, expression evaluation order, 513<br />

character, distinguished from strings, 294<br />

Class<br />

objects, 293<br />

obtaining, example, 74<br />

Cloneable interface implemented by, 292<br />

components<br />

See also variables<br />

assignment, run-time testing, 295, 412,<br />

514, 519<br />

default values, 71<br />

initialization, 291<br />

as a kind of variable, 69<br />

type declaration, 291<br />

creation, 45, 289<br />

expression evaluation, 432<br />

order, 432<br />

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

elements<br />

are variables in memory model, 558<br />

example, 288<br />

exceptions, ArrayStoreException, 295<br />

indexing of, 289<br />

initialization, 289, 290<br />

initializer(s), 283<br />

length<br />

and data races, 563<br />

members, 125, 292<br />

names, fully qualified, 145<br />

Object as superclass of, 293<br />

origin, 290<br />

variables<br />

declaration, 288<br />

initialization, 288<br />

ASCII characters<br />

See also characters; Unicode character set<br />

Unicode character set relationship to, 14<br />

assert<br />

keyword, 21<br />

statement, 373<br />

can complete normally, 403<br />

definite assignment, 541<br />

assertion(s)<br />

enabling<br />

during initialization, 321<br />

term definition, 373<br />

AssertionError, 376<br />

assignment<br />

See also fields; initialization<br />

array, expression evaluation order, 513, 519<br />

assignable to, term definition, 95<br />

compatible, 283, 410<br />

term definition, 95<br />

compound<br />

599

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

Saved successfully!

Ooh no, something went wrong!