1. Home
  2. Java
  3. Variables and Datatypes
  4. Java Keywords

Java Keywords

Keywords in Java

Keywords are the words that have a standard, predefined meaning. These keywords can be needed only for their intended purpose; the programmer cannot redefine them. All keywords must be written in lowercase. The keywords are also known as Reserved Words. These are 49 keywords in Java as shown in the table:

abstract
double
int
switch
asset
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
null
default
import
static
do
instanceof
super

This list included true, false and null, but these are not reserved but these can’t be used as identifiers, because it is the literals of built-in types.

Tags ,