In java some words are reserved to represents some meaning or functionality such
type of reserved identifiers are called reserved words.
Keywords for data types:
1)byte
2)short
3)int
4)long
5)float
6)double
7)char
8)boolean
Flow control key words :
1)if
2)else
3)case
4)switch
5)default
6)while
7)do
8)for
9)break
10)continue
11)return
Modifier keywords:
1)public
2)private
3)protected
4)final
5)static
6)synchronized
7)abstract
9)native
10)strict fp
11)volatile
12)transient
Exception handing keywords:
1)try
2)catch
3)finally
4)throw
5)throws
6)assert
Class related keywords:
1)interface
2)package
3)import
4)extends
5)class
6)import
Object related keywords:
1)new
2)instance of
3)super
4)this
Return type keywords:
1)void
Unused keywords:
1)goto: usage of goto keyword created several problems in old languages hence sun people beaned this keywords
2)const: in java we will use final instead of const
Reserved Literals:
1)true,2)false these are allowed values for boolean datatypes
3)null default value for object reference
0 comments: