Keywords in Java
Java language has reserved 49 words as keywords.
Java Keywords also called a reserved word. Keywords are identifiers that Java reserves for its own use. These identifiers have built-in meanings that cannot change. Thus, programmers cannot use these identifiers for anything other than their built-in meanings. Technically, Java classifies identifiers and keywords as separate categories of tokens. Keywords are an essential part of a language definition. There are 49 reserved keywords currently defined in the Java language and they are shown in the below table.
abstract
|
double
|
int
|
switch
|
assert
|
else
|
interface
|
synchronized
|
boolean
|
extends
|
long
|
this
|
break
|
false
|
native
|
throw
|
byte
|
final
|
new
|
transient
|
case
|
finally
|
package
|
true
|
catch
|
float
|
private
|
try
|
char
|
for
|
protected
|
void
|
class
|
goto
|
public
|
volatile
|
const
|
if
|
return
|
while
|
continue
|
implements
|
short
|
|
default
|
import
|
static
|
|
do
|
instanceof
|
super
|
The keywords const and goto are reserved but not used. In the early days of Java,several other keywords were reserved for possible future use.