• Range: U+0000 to U+ffff
• Size: Unicode 16-bit character
• Constants of char type can be written as character literals, hexadecimal escape sequence, or Unicode representation
• All the following are valid assignments:
char char1 = ‘Z’
char char2 = ‘\x0058’
char char3 = (char)88
char char4 = ‘\u0058’
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment