Java Keywords

Keywords or reserved words in Java are shown in the table below. As a rule, these words cannot be used as names for variables or constants.

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