| Contents | Prev | Next | Index | Java Language Specification Third Edition |
abstract modifiersuper method invocation, 355private, 151protected, 150public, 150public class instances, through public superclasses and superinterfaces, 151super keyword, 178private, example, 111protected, example, 110public, example, 109private, example, 111protected, example, 110public, example, 109private, example, 111protected, example, 110public, example, 109protected, details of, 105ArithmeticException, 321Class
Cloneable interface implemented by, 214ArrayStoreException, 217Object as superclass of, 215
\)
[])
break statement
byte type
CR)
catch clause, 303try statementchar type, 31abstract, 137
.class suffix, as name for compiled files, 122Class objects, associated with arrays, 215ClassCastException, 75final
static, 172static, 171public, in example of qualified names and access control, 107public
import java.lang.*, 128break statement, 297continue statement, 299for statement, 295return statement, 301synchronized statement, 304throw statement, 302try statement, 305try-catch statement, 307try-catch-finally statement, 308final; fields, interface; literalsfinalprivate, example, 111protected, example, 110public, example, 109this keyword use for, 283private, preventing instantiation with, 139, 197protected, accessibility of, 105, 106throws clause, binary compatibility considerations, 270continue statement
boolean expressions use for, 40break statement, specification, 297continue statement, specification, 299do statement, specification, 293for statement, specification, 295if statement, dangling else handling, 284if-then statement, specification, 288if-then-else statement, specification, 288switch statement, 49return statement, specification, 301switch statement, specification, 288synchronized statement, specification, 304throw statement, specification, 302try statement, specification, 305try-catch statement, specification, 307try-catch-finally statement, specification, 308while statement, specification, 292
elseimport
abstract, 205do statementdouble type
private, 111protected, 110public, 109public and non-public, 107public, protected, and private access, 150private access, 151protected access, 150public access, 150throws, 186throws clause in method declarations, 175Exception, 226throws clause in method declarations, 175UnsatisfiedLinkException, 236NegativeArraySizeException, 321, 338NullPointerException, 194RuntimeException, 395uncaughtException method, when invoked, 220extends clause
private, example, 111protected, example, 110public, example, 109static (continued)
static
transient, 156
volatile, 156super keyword, 344, 345this keyword, 283public, by default in interface declaration, 202final modifierfinal by default in, interface declaration, 203volatile, 158finalize method, as member of Object class, 45finally clause, exception handling use, 223float type, 35float type, floating-point literal specification, 24, 33for statement
return statement, 302
goto statementif statement, dangling else handling, 284
if statementselse, handling of, 285if-then statement, specification, 288if-then-else statement, specification, 288extends clause; interfacesimplements clause, 201
public, protected, and private access, examples, 150Test class example initialization, 231static
instanceof operator
private constructors, 139, 197staticstaticinstanceof operator
abstract methods, 205Cloneable, implemented by arrays, 214java.io.Serializable, implemented by arrays, 214public
Serializable, implemented by arrays, 214continue statement, specification, 299do statement, specification, 293for statement, specification, 295while statement, specification, 292
.java suffix, as name for source files, 122java package is always in scope, 125java.lang
java.lang package
LF)
Test class example, at virtual machine startup, 230