Table 64 lists all the keywords in alphabetical order. These words are reserved; that is, you cannot use any of them as names in your programs. Note that true, false, and null are not keywords but rather reserved words, so you cannot use them as names in your programs either.
abstract |
double |
int |
strictfp [**] |
boolean |
else |
interface |
super |
break |
extends |
long |
switch |
byte |
final |
native |
synchronized |
case |
finally |
new |
this |
catch |
float |
package |
throw |
char |
for |
private |
throws |
class |
goto [*] |
protected |
transient |
const [*] |
if |
public |
try |
continue |
implements |
return |
void |
default |
import |
short |
volatile |
do |
instanceof |
static |
while |
[**] Indicates a keyword that was added to the Java 2 Platform.
[*] Indicates a keyword that is not currently used.
Getting Started
Object-Oriented Programming Concepts
Language Basics
Object Basics and Simple Data Objects
Classes and Inheritance
Interfaces and Packages
Handling Errors Using Exceptions
Threads: Doing Two or More Tasks at Once
I/O: Reading and Writing
User Interfaces That Swing
Appendix A. Common Problems and Their Solutions
Appendix B. Internet-Ready Applets
Appendix C. Collections
Appendix D. Deprecated Thread Methods
Appendix E. Reference