Java supports 50 basic keywords, in which 2 are not used. Keywords are the reserved word.Keywords have the special meaning in Java and can't be used as identifiers.
- abstract
- assert
- boolean
- break
- byte
- case
- catch
- char
- class
- const
- continue
- default
- do
- double
- else
- enum
- extends
- final
- finally
- float
- for
- goto
- if
- implements
- import
- instanceof
- int
- interface
- long
- native
- new
- package
- private
- protected
- public
- return
- short
- static
- strictfp
- super
- switch
- synchronized
- this
- throw
- throws
- transient
- try
- void
- volatile
- while
Learn more: New features in java
No comments:
Post a Comment