# char Java Keyword

char is a Java primitive type.

A char variable can store a single Unicode character.

## Examples

      char delimiter = ';';

## Remarks

- 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.

Related Topics

None