Appendix A

This appendix lists all keywords of the Java language. Some keywords are “restricted.” They have a special meaning only in certain circumstances (for example, in module declarations). Elsewhere, they can be identifiers.

Table A.1 Java Keywords

Keyword

Meaning

See Chapter

abstract

An abstract class or method

5

assert

Used to locate internal program error

7

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

7

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, or a default method ...

Get Core Java, Volume I Fundamentals, 11th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.