Reserved Words in Java

Tasfia Ara
Apr 19, 2021

Reserved words in Java are words that are already used by objects or variable names within the program. Since they already have a function, you can’t reassign them by using them as variables. Here is a list of reserved words to help you while coding.

  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. double
  14. do
  15. else
  16. enum
  17. extends
  18. false
  19. final
  20. finally float
  21. for
  22. goto
  23. if
  24. implements
  25. import
  26. instanceof
  27. int
  28. interface
  29. long
  30. native
  31. new
  32. null
  33. package
  34. private
  35. protected
  36. public
  37. return
  38. short
  39. static
  40. strictfp
  41. super
  42. switch
  43. synchronized
  44. this
  45. throw
  46. throws
  47. tranient
  48. true
  49. try
  50. void
  51. volatile
  52. while

--

--

Tasfia Ara

Hi! I am Tasfia Ara, a programmer who loves creating projects using Java, Python and Javascript!