Sunday, 7 June 2015

Java Keywords

Keywords are the reserved words and these are essential part of a language Identifiers. Each and Every keywords have special meaning and purpose. Java language has reserved 50 words as keywords. Since keywords have specific meaning in java, we cannot use them as names for variables. The following are the java reserved words.


  1. abstract          
  2. assert
  3. boolean
  4. break
  5. byte
  6. case
  7. catch
  8. char
  9. class
  10. const
  11. continue 
  12. default
  13. do
  14. double
  15. else
  16. enum
  17. extends
  18. final
  19. finally
  20. float
  21. for
  22. goto
  23. if
  24. implements
  25. import
  26. instanceof
  27. int
  28. interface
  29. long
  30. native
  31. new
  32. package
  33. private
  34. protected 
  35. public
  36. return
  37. short
  38. static
  39. strictf
  40. super
  41. switch
  42. synchronization 
  43. this
  44. throw
  45. throws
  46. transient  
  47. try
  48. void
  49. volatile 
  50. while

Note:

1. The keywords const and goto are reserved but not used
2.In addition to the above 50 keywords java also reserved true, false, null, you cannot use these as identifier names.
3. All keywords are in lower case letters.

The following table show all the keywords with category


0 comments:

Post a Comment

Advertisement

Find Us On Facebook

C Programming

More

C++ Tutorial

More

Java Tutorial

More

Computer Basics

More

MS Office

More

Database Management

More
Top