Java Keywords At A GlanceS2C Home   « Java Keywords At A Glance

The tables below list all the Java5 and Java6 keywords available on the Java platform. Click on a link to go to example usage of that keyword for the Java version required.

For keywords such as break and continue, which can be present in differnt loop or conditional constructs we show first usage of the keyword in question:

Keywords marked with an asterisk (*) are not used.

Naming Rules and Keywords

This rule applies to all variables, as well as classes and methods (collectively known as identifiers)

  • You cannot use any of the keywords specified in the tables below when creating your own identifiers.

Java5 Keywords

Keywords marked with an asterisk (*) are not used.

Click a link in the table below to show lesson usage for any Java6 keyword you're interested in.


Java5 Keywords
abstractassertbooleanbreakbytecasecatchcharclassconst *
continuedefaultdodoubleelseenumextendsfinalfinallyfloat
forgoto *ifimplementsimportinstanceofintinterfacelongnative
newpackageprivateprotectedpublicreturnshortstaticstrictfpsuper
switchsynchronizedthisthrowthrowstransienttryvoidvolatilewhile

Java5 Documentation

Java5 comes with very rich documentation that you will go back to time and again and the keywords listed in the table above are just scratching the surface. The following link will take you to the online version of documentation for the JavaTM 2 Platform Standard Edition 5.0 API Specification. I suggest adding this link to your browser's favourites toolbar for fast access.


Java6 Keywords

Keywords marked with an asterisk (*) are not used.

Click a link in the table below to show lesson usage for any Java6 keyword you're interested in.


Java6 Keywords
abstractassertbooleanbreakbytecasecatchcharclassconst *
continuedefaultdodoubleelseenumextendsfinalfinallyfloat
forgoto *ifimplementsimportinstanceofintinterfacelongnative
newpackageprivateprotectedpublicreturnshortstaticstrictfpsuper
switchsynchronizedthisthrowthrowstransienttryvoidvolatilewhile

Java6 Documentation

Java6 comes with very rich documentation that you will go back to time and again and the keywords listed in the table above are just scratching the surface. The following link will take you to the online version of documentation for the Java™ Platform, Standard Edition 6 API Specification . I suggest adding this link to your browser's favourites toolbar for fast access.


go to home page Homepage go to top of page Top