Keywords in Java.

Keywords in Java

  • The word which is pre-defined in the library is called keyword.
  • It's functionality is also pre-defined.
  • Keyword can not be used as a varible,function name ,class name or as an any identifier.
  • Example of keywords are int,float,char,void,main etc.

List of keywords in Java

charcontinuedoubleelse
defaultcatchfinallyfinal
longinterfaceintinstanceof
assertabstractclassextends
implementsfloatconstboolean
privatepublicprotectedpackage
breakbytecasedo
enumforgotoif
importnativenewreturn
strictfpsynchronizedstaticshort
superswitchthisthrow
throwstransienttryvoid
volatilewhile
Next Post Previous Post
No Comment
Add Comment
comment url