Primitive type
char primitive
An unsigned 16-bit UTF-16 code unit. Supplementary Unicode code points require a surrogate pair.
Formal Syntax & Structure
java syntaxjava
char name = 'A';Working Example
Example Snippetjava
public class Main { public static void main(String[] args) { char section = 'C'; System.out.println(section); }}