Java Char

Definition:
Char data type holds only single character value, for example: ‘a’ or ‘A’ or ‘@’ etc.

Syntax:

char variableName = 'a';
char variableName2 = 'A';
Java

Note that char data type must be surrounded by single quotes.