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.

interface, multiply inherited, 266<br />

multiply inherited, 207<br />

re-inheritance of, 209<br />

hiding, 231<br />

vs. overriding, 232<br />

of variables<br />

class, 205<br />

instance, 206<br />

illegal self-reference in annotation, 274<br />

inheritance<br />

accessing members of inaccessible classes<br />

, 194<br />

class members, 192<br />

default access, 192<br />

public, protected, and private<br />

access, 193<br />

multiple, with superinterfaces, 188<br />

with default access, 192<br />

with private access, 193<br />

with protected access, 193<br />

with public access, 193<br />

methods<br />

abstract declarations, 269<br />

invocation of hidden class, 234<br />

private, 144<br />

protected, 143<br />

public, 143<br />

overloading, 231<br />

overriding, 230<br />

vs. hiding, 232<br />

incorrect, 231<br />

because of throws, 236<br />

large example, 234<br />

wildcards, 52<br />

as components of array types, 53<br />

bounded, 53<br />

exceptions<br />

See also binary, compatibility; compile-time<br />

errors; errors;<br />

(chapter), 297<br />

asynchronous, causes and handling of, 303<br />

caller, determination of, 302<br />

causes of, 298<br />

checked<br />

constructors, declaring with throws clause<br />

in method declarations, 221<br />

defining new exception classes as, 306<br />

Exception, 306<br />

in an instance initializer, 202, 238, 301<br />

methods, declaring with throws clause in<br />

method declarations, 221<br />

in a static initializer, 239<br />

UnsatisfiedLinkException, 316<br />

classes<br />

Error, 299<br />

Exception, 301, 306, 398<br />

RuntimeException, 301<br />

unchecked exceptions found in, 222<br />

Throwable, 297, 299<br />

errors<br />

AbstractMethodError, 352, 353<br />

ClassCircularityError, 186, 341<br />

meaning, 313<br />

ClassFormatError, meaning, 313<br />

Error, 306<br />

ExceptionInInitializerError, 321,<br />

394<br />

IllegalAccessError, 341, 356, 357, 476<br />

meaning, 315<br />

IncompatibleClassChangeError, 348,<br />

354, 357, 475<br />

meaning, 315<br />

InstantiationError, meaning, 316<br />

LinkageError, 313, 314<br />

loading and linkage, 307<br />

NoClassDefFoundError, 320<br />

meaning, 313<br />

NoSuchFieldError, 347<br />

meaning, 316<br />

NoSuchMethodError, 350, 357, 475<br />

meaning, 316<br />

OutOfMemoryError, 222, 313, 321, 322,<br />

413, 428, 432, 434<br />

StackOverflowError, 477<br />

UnsatisifedLinkError<br />

meaning, 316<br />

VerifyError, 353, 357<br />

meaning, 314<br />

VirtualMachineError, 307<br />

example, 304<br />

handlers<br />

compile-time checking, 299<br />

how established, 297<br />

in try statements, 397<br />

handling of, 302<br />

asynchronous, 303<br />

611

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

Saved successfully!

Ooh no, something went wrong!