Keywords are the reserved words and these are essential part of a language Identifiers. Each and Every keywords have special meaning and purpose. Java language has reserved 50 words as keywords. Since keywords have specific meaning in java, we cannot use them as names for variables. The following are the java reserved words.
Note:
1. The keywords const and goto are reserved but not used
2.In addition to the above 50 keywords java also reserved true, false, null, you cannot use these as identifier names.
3. All keywords are in lower case letters.
The following table show all the keywords with category
- 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
- strictf
- super
- switch
- synchronization
- this
- throw
- throws
- transient
- try
- void
- volatile
- while
Note:
1. The keywords const and goto are reserved but not used
2.In addition to the above 50 keywords java also reserved true, false, null, you cannot use these as identifier names.
3. All keywords are in lower case letters.
The following table show all the keywords with category
0 comments :
Post a Comment
Note: only a member of this blog may post a comment.