Java keywords : List of keywords in java


Java keywords are reserved words and have special meaning for the java compiler. These java keywords cannot be used as identifiers in a program. There is a rich list of java keywords.

List of java keywords,
  1. boolean
  2. void
  3. int
  4. threadsafe
  5. super
  6. case
  7. continue
  8. throw
  9. finally
  10. private
  11. volatile
  12. native
  13. package
  14. future
  15. operation
  16. char
  17. true
  18. long
  19. null
  20. if
  21. break
  22. do
  23. synchronized
  24. static
  25. protected
  26. class
  27. extends
  28. import
  29. generic
  30. outer
  31. byte
  32. false
  33. double
  34. new
  35. else
  36. default
  37. while
  38. try
  39. abstract
  40. public
  41. instanceof
  42. interface
  43. cast
  44. goto
  45. rest
  46. float
  47. short
  48. byvalue
  49. this
  50. switch
  51. for
  52. return
  53. catch
  54. final
  55. transient
  56. throws
  57. implements
  58. const
  59. inner
  60. var

Some of the keywords in above list are reserved for future use.

No comments:

Post a Comment