Reserved Words

In this lesson, we will look at the list of Java's reserved words.

The meanings of the following reserved words are determined by the Java language. We may not redefine any of them. Therefore, we cannot use any of these words for variable names, method names, or class names. Most of these reserved words are Java keywords and have special meaning to the Java compiler. Notable exceptions are the currently unused words const and goto, as well as true, false, and null, which are actually literals instead of keywords. Even so, they are reserved.

Get hands-on with 1200+ tech skills courses.