Learn Java Basics
About Lesson

A reserved word (also known as a keyword) is a word that has a predefined meaning in the programming language and cannot be used as an identifier (i.e., as a name for classes, methods, variables, etc.).

Here is a list of all the reserved words in Java:

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

*Note: “const” and “goto” are technically reserved words in Java, but they are not used in the language and are reserved for future use.

Join the conversation