java

Java Keywords


What is Keywords?

keywords are the reserved words that have predefined meanings and we cannot be used it as identifiers (such as variable names or method names).

 

Example

int double=10;   // we can't use double as variable_name because double is a reserved word.

 

Java keywords List

 

 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