Character Set
The character set is a set of alphabets, letters and some special characters that are valid in Java language.
The smallest unit of Java language is the characters need to write java tokens.
These character set are defined by Unicode character set.
Whenever we write any Java program then it consists of different statements. Each Java Program is set of statements and each statement is set of different Java programming lexemes. In Java Programming each and every character is considered as a single lexeme. i.e Basic Lexical Element.
Character Set Consists Of
Alphabets
C abd Java accepts both lowercase and uppercase alphabets as variables and functions.
Uppercase: A B C ................................... X Y Z Lowercase: a b c ...................................... x y z
Digits
0 1 2 3 4 5 6 7 8 9
Special Characters
+ _ ( ) { } [ ] \ | / > < ; etc.
Valid C and Java Characters : Special Characters are listed below
Symbol | Meaning |
---|---|
~ | Tilde |
! | Exclamation mark |
# | Number sign |
$ | Dollar sign |
% | Percent sign |
^ | Caret |
& | Ampersand |
* | Asterisk |
( | Left parenthesis |
) | Right parenthesis |
_ | Underscore |
+ | Plus sign |
| | Vertical bar |
\ | Backslash |
` | Apostrophe |
– | Minus sign |
= | Equal to sign |
{ | Left brace |
} | Right brace |
[ | Left bracket |
] | Right bracket |
: | Colon |
” | Quotation mark |
; | Semicolon |
< | Opening angle bracket |
> | Closing angle bracket |
? | Question mark |
, | Comma |
. | Period |
/ | Slash |
No comments:
Post a Comment