Keywords in Java

Keywords in Java

In Java there are total 49 keywords are available.

The keywords “const” & “goto” are reserved & not used.

The “true”, “false” & “null” are values.

One cannot use the keywords for any other purpose.

Following are the keywords in Java:

abstract assert boolean break byte
case catch char class const
continue default do double else
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 ——

Keywords in Java