9 57
space 32
Other numeric values are for special characters and some symbols.
Write output:
int a='A';
System.out.println(a);
char b=97;
System.out.println(b);
Unicode
Unicode is a two byte character code set that has
characters representing alphabets in almost all human languages around the world including English,
Chinese, Hindi, Malayalam etc. Java uses Unicode character set.
Description and Examples
There are 65536 characters in Unicode character set..
Unicode characters are written in Java using '\u' using four digits.
Value of A is '\u0041' and a is '\u0061'.
Write output:
char a='\u0041';
System.out.println(a);
char b='\u0061';
System.out.println(b);
Output: a