Java Reserved Keyword List

There are some words that you can’t use in your Java programming because the keywords have a special meaning to the Java compiler and Java functions. If you attempt to use any of these reserved keywords as variable names in your application, you will see a compile time error.

There are 50 reserved keywords in the Java programming language. In addition to those 50, there are 3 additional words that while not reserved you just can’t use them for variable names.

Reserved Literal Words

true false null

Reserved Keywords

abstract assert boolean break byte
case catch char class const
continue default do double else
enum extends final finally float
for goto if implements import
instanceof int interface long native
new package private protected public
return short static strictfp super
switch synchronized this throw throws
transient try void volatile while

Even though both const and goto are reserved keywords in Java, they are not used in programming.

Add a Comment

Your email address will not be published. Required fields are marked *