The JavaTM Tutorial
Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Learning the Java Language
Lesson: Language Basics

Java Language Keywords

Here's a list of Java's keywords. These words are reserved--you cannot use any of these words as names in your Java programs. true, false, and null are not keywords but they are reserved words, so you cannot use them as names in your programs either.

abstractdoubleintstrictfp **
booleanelseinterfacesuper
breakextendslongswitch
bytefinalnativesynchronized
casefinallynewthis
catchfloatpackagethrow
charforprivatethrows
classgoto *protectedtransient
const *ifpublictry
continueimplementsreturnvoid
defaultimportshortvolatile
doinstanceofstaticwhile

* indicates a keyword that is not currently used
** indicates a keyword that was added for Java 2


Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Copyright 1995-2001 Sun Microsystems, Inc. All rights reserved.