Start Coding Now

Keywords in Java - Reserved Words List

Complete list of reserved keywords in Java. Understand their meaning and why you cannot use them as variable names.

Java Keywords

Keywords are reserved words that have specific meaning in Java. You cannot use them as variable, method, or class names.

Here are some common keywords:

KeywordDescription
abstractAbstract class or method
booleanBoolean data type
breakBreak out of a loop
catchCatch exceptions
classDefine a class
continueContinue to next loop iteration
doubleDouble data type
elseElse branch
finalConstant or non-inheritable
ifIf condition
importImport a package
intInteger data type
newNew object
packageDeclare a package
privatePrivate access modifier
publicPublic access modifier
returnReturn from a method
staticStatic member
voidNo return value
whileWhile loop
There are 50+ keywords in Java.

Frequently Asked Questions