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.

630<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 />

types<br />

as array element types, 288<br />

changing value of variables, 35<br />

fully qualified name for, 145<br />

literal as source code representation of the<br />

value of, 21<br />

term definition and specification, 35<br />

variables of, specification, 67<br />

private modifier<br />

See also declarations; modifiers<br />

access<br />

determining, 139<br />

inheritance of class members, example,<br />

193<br />

cannot be used for local classes, 362<br />

class, pertains only to member, 175<br />

constructors<br />

access control, example, 144<br />

preventing instantiation with, 178<br />

default constructor of an enum is, 250<br />

fields, access control, example, 144<br />

inheritance with, example, 193<br />

and interfaces, 260<br />

members not inherited, 190<br />

methods<br />

abstract not permitted with, 214<br />

access control, example, 144<br />

in example of qualified names and access<br />

control, 144<br />

as implicitly final, 217<br />

overriding and hiding not possible with,<br />

228<br />

preventing instantiation by declaring constructors<br />

as, 248<br />

top-level type may not use, 169<br />

productions<br />

term definition, 9<br />

promotion<br />

See also numbers<br />

(chapter), 77<br />

binary, 486, 488, 491, 500, 502, 503, 506,<br />

508, 511<br />

numeric, 108<br />

binary, 110<br />

specification, 110<br />

specification, 108<br />

term definition, 78<br />

unary, 108<br />

specification, 108<br />

unary, 489, 490, 502<br />

in array index, 432, 482<br />

protected modifier<br />

See also declarations; modifiers<br />

access, 139<br />

cannot be use for local classes, 362<br />

class, pertains only to member, 175<br />

constructors, access control, example, 143<br />

fields, access control, example, 143<br />

inheritance with, example, 193<br />

and interfaces, 260<br />

methods, access control, example, 143<br />

top-level type may not use, 169<br />

provably distinct<br />

parameterized types, 52<br />

type arguments, 54<br />

public modifier<br />

See also declarations; modifiers<br />

access, 138<br />

inheritance of class members, example,<br />

193<br />

cannot be used for local classes, 362<br />

classes<br />

access control in, 138<br />

binary compatibility considerations, 341<br />

in example of qualified names and access<br />

control, 141<br />

pertains only to top-level and member, 175<br />

constructors, access control, example, 143<br />

fields<br />

access control, example, 143<br />

interface, implicit in declaration, 264<br />

implicit for interface member types, 270<br />

inheritance with, example, 193<br />

interfaces<br />

binary compatibility considerations, 356<br />

declarations, 260<br />

methods<br />

access control, example, 143<br />

in interfaces, implicit in declaration, 267

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

Saved successfully!

Ooh no, something went wrong!