Home > Tutorial > Java Reserved Keyword List

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 bytes
case catch care class const
continue default do double else
enum extends final finally float
for goto if implements import
instnaceof int interface long native
new package private protected public
return short static strictfp super
switch synchronized this throw throws
transient try void volatile while


Smedley
Posted by

Smedley

Smedley has been doing software development for years, which mainly docues on C and C++. In the past number of years, he has focused on Java programming.

You may also like...

Leave a Reply

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

Copyright © 2018 JavaCodeDepot