char is a Java primitive type.
A char variable can store a single Unicode character.
Remarks Char Variable in Java
The following char constants are available:
\b − Backspace
\f − Form feed
\n − Newline
\r − Carriage return
\t − Horizontal tab
\' − Single quote
\" − Double quote
\" − Backslash
\xxx − The Latin−1 character with the encoding xxx. The \x and \xx forms are legal but may
lead to confusion.
·
\uxxxx − The Unicode character with the hexadecimal encoding xxxx.
The Character class includes useful static methods for dealing with char variables, including isDigit(),
isLetter(), isWhitespace() and toUpperCase().
char values are unsigned.
Examples
char delimiter = ';';
No Comment to " Char Variable in Java "