APPENDIX A - RESERVED WORDS - tmarris.com

tmarris.com

APPENDIX A - RESERVED WORDS - tmarris.com

1

APPENDIX A - RESERVED WORDS

Terry Marris 7 June 2001

The Java keywords are listed below.

keyword

abstract

boolean

break

byte

case

catch

char

class

const

continue

default

do

double

else

extends

final

finally

float

for

goto

if

implements

import

instanceof

int

meaning

an abstract class or method

the boolean primitive data type with values true and false.

gets out of a switch or loop

the 8-bit integer type

a case of a switch

the clause of a try block catching an exception

the Unicode character type

defines a class type

not used

continues at the end of a loop

the default clause of a switch

the top of a do-while loop

the double precision floating point number type

the else clause of an if statement

defines the parent of a class

a constant, or a class or method that cannot be overridden

the part of a try block that is always executed

the single precision floating point number type

a loop type

not used

a conditional or selection statement

defines the interfaces(s) that a class implements

makes available a package

tests if an object is an instance of a class

the 32-bit integer type


2

interface

long

native

new

null

package

private

protected

public

return

an abstract type with methods signatures but no implementations

the 64-bit long integer type

a method implemented by the host system

allocates memory for a new object or array

a null reference

a collection of classes

a feature that is accessible only by methods of this class

a feature that is accessible only by methods of this class, its subclass, and

other classes in the same package

a feature that is accessible by methods of all classes

returns from a method

short

the 16-bit integer type

static a feature that is unique to its class, not to objects of its class

super

the superclass object or constructor

switch a selection statement

synchronised a method that is atomic to a thread

this

throw

throws

transient

try

void

volatile

while

the implicit argument of a method, or a constructor of this class

throws an exception

the exception that a method can throw

marks data that should not be persistent

a block of code that traps exceptions

denotes a method that returns no value

not used

a loop

More magazines by this user
Similar magazines