Reserved Words in Java
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.
- abstract
- assert
- boolean
- break
- byte
- case
- catch
- char
- class
- const
- continue
- default
- double
- do
- else
- enum
- extends
- false
- final
- finally float
- for
- goto
- if
- implements
- import
- instanceof
- int
- interface
- long
- native
- new
- null
- package
- private
- protected
- public
- return
- short
- static
- strictfp
- super
- switch
- synchronized
- this
- throw
- throws
- tranient
- true
- try
- void
- volatile
- while