Java defines a special set of identifiers called keywords that represent fundamental coding constructs. Following is a list of keywords that are reserved in Java:
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
enum
extends
false
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
null
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
true
try
void
volatile
while
Keywords required for Java SE 8
abstract
default
goto
package
this
assert
do
if
private
throw
boolean
double
implements
protected
throws
break
else
import
public
transient
byte
enum
instanceof
return
true
case
extends
int
short
try
catch
false
interface
static
void
char
final
long
strictfp
volatile
class
finally
native
super
while
const
float
new
switch
continue
for
null
synchronized
All Java keywords are defined for a reason. Most of them provide some functionality within the Java programming language, while others serve as placeholders intended to keep you from using a particular word as an identifier.