CORE JAVA

ProwessApps Learning Portal

Keywords in Java


  • Keywords are the special reserved words whose meaning has already been explained to the Java compiler.

  • Compiler uses them to figure out what your source code is trying to do.

  • Keywords cannot be used as identifiers (names) class,methods or variables.

Java Language Keywords :

Here is the list of keywords in the Java programming language.

abstract continue for new switch
assert default goto package synchronized
boolean do if private this
break double implements protected throw
byte else import public throws
case enum intanceof return transient
catch extends int short try
char final interface static void
class finally long strictfp volatile
const float native super while

Reserved Keywords Currently Not in Use:
1 .const       2 .goto
Keywords Added in version 1.2
strictfp
Keywords Added in version 1.4
assert
Keywords Added in version 1.5
enum




advertisement