In Java there are 65536 characters but in C 128 characters.Java supports "UNICODE" character set.For every value there is equal decimal value,it is called UNICODE.UNICODE is a super set of ASCII code.Java is a universal language and it supports all characters available in various languages.
TOKENS:
A token is a smallest individual unit within program.There are 5 types of Tokens.
1.Reserved Words
2.Identifiers
3.Data type
4.Constants
5.Operators
Reserved Words :
Language provides set of predefined instructions called Reserved words.Reserved words are language related words having special meaning.The meaning of this words understand by Java Compiler.Reserved Words are classified into two types.
1.Keywords (predefined)
a.used keywords
b.unused keywords ex: goto , constant
2.Reserved Literals
a.True
b.False
c.Null
Categories:
Keywords for datatypes:-
1.byte
2.short
3.int
4.long
5.float
6.double
7.boolean
8.char
9.void
Keywords for modifiers:-
1.private
2.protected
3.public
4.static
5.final
6.strictfp
7.synchronized
8.transient
9.volatile
10.abstract
11.native
TOKENS:
A token is a smallest individual unit within program.There are 5 types of Tokens.
1.Reserved Words
2.Identifiers
3.Data type
4.Constants
5.Operators
Reserved Words :
Language provides set of predefined instructions called Reserved words.Reserved words are language related words having special meaning.The meaning of this words understand by Java Compiler.Reserved Words are classified into two types.
1.Keywords (predefined)
a.used keywords
b.unused keywords ex: goto , constant
2.Reserved Literals
a.True
b.False
c.Null
Categories:
Keywords for datatypes:-
1.byte
2.short
3.int
4.long
5.float
6.double
7.boolean
8.char
9.void
Keywords for modifiers:-
1.private
2.protected
3.public
4.static
5.final
6.strictfp
7.synchronized
8.transient
9.volatile
10.abstract
11.native
0 comments:
Post a Comment