keywords

 

  The complete Java keyword list is shown below.  It is perhaps easiest to remember them by their beginning letters.

 

A

 abstract  assert

N

native   new

B

 boolean   break   byte

O

none

C

 case   catch   char   class   const   continue

P

package   private   protected   public

D

 default   do   double

Q

none

E

 else   extends

R

return

F

 final   finally   float   for

S

short static strictfp super switch synchronized

G

 goto

T

this   throw   throws   transient

H

 none

U

none

I

 if implements import instanceof int interface

V

void   volatile

JK

 none

W

while

L

 long

XYZ

none

 

  The following are not Java keywords:

 

friend,  friendly,  include,  ifdef,  typedef,  def,  sizeof,  delete,  inline,  using,  virtual,  True,  False,  Null,  thread,  integer,  NaN.

 

  const and goto are the two keywords that are not used.  They are sometimes referred to as reserved words, not keywords.

 

  true, false, and null are reserved words but they are not on the keyword list.