Java ScreenShot
 

Screenshot Core Java 2: Volume I - Fundamentals

Table of Contents


Appendix Java Keywords

Keyword

Meaning

See Chapter

abstract

an abstract class or method

5

assert

used to locate internal program errors

11

boolean

the Boolean type

3

break

breaks out of a switch or loop

3

byte

the 8-bit integer type

3

case

a case of a switch

3

catch

the clause of a try block catching an exception

11

char

the Unicode character type

3

class

defines a class type

4

const

not used

 

continue

continues at the end of a loop

3

default

the default clause of a switch

3

do

the top of a do/while loop

3

double

the double-precision floating-number type

3

else

the else clause of an if statement

3

extends

defines the parent class of a class

4

final

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

5

finally

the part of a try block that is always executed

11

float

the single-precision floating-point type

3

for

a loop type

3

goto

not used

 

if

a conditional statement

3

implements

defines the interface(s) that a class implements

6

import

imports a package

4

instanceof

tests if an object is an instance of a class

5

int

the 32-bit integer type

3

interface

an abstract type with methods that a class can implement

6

long

the 64-bit long integer type

3

native

a method implemented by the host system (see Volume 2)

 

new

allocates a new object or array

3

null

a null reference

3

package

a package of classes

4

private

a feature that is accessible only by methods of this class

4

protected

a feature that is accessible only by methods of this class, its children, and other classes in the same package

5

public

a feature that is accessible by methods of all classes

4

return

returns from a method

3

short

the 16-bit integer type

3

static

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

3

strictfp

Use strict rules for floating-point computations

2

super

the superclass object or constructor

5

switch

a selection statement

3

synchronized

a method that is atomic to a thread (see Volume 2)

 

this

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

4

throw

throws an exception

11

throws

the exceptions that a method can throw

11

transient

marks data that should not be persistent

12

try

a block of code that traps exceptions

11

void

denotes a method that returns no value

3

volatile

Ensure that a field is coherently accessed by multiple threads

Volume 2

while

a loop

3

Screenshot

Java ScreenShot
        Java ScreenShot
Top
 

Comments