EN
Java - list of all reserved keywords
2 points
Java has set of keywords that are words reserved for Java compilar, and can't be used for naming purpose during coding like naming class, method or variable.
For example if we use one of the keyword as variable name we will get compilation error.
abstract | assert | boolean | break |
byte | case | catch | char |
class | const | continue | default |
do | double | else | enum |
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 | true | false |
null |
ture
,false
andnull
are not reserved words, but we can't use them for naming purposes.