# char

*noun*

say it: **“char”** **/tʃɑr/** or **“car”** **/kɑr/** or **“care”** **/kɛr/**

Java's type for a single character, such as a letter, a digit or a symbol, written between single quotes.

## What is **char** in Java?

**char** — A primitive type that stores one UTF-16 code unit.

```java
class Order {
    int itemCount = 3;
    double price = 4.50;
    char size = 'M';
    boolean paid = true;
}
```

## In a sentence

- “I read the first letter of the name into a **char** to show it on the user's avatar.”

Level: Novice · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=1)

Updated: October 26, 2026

## In other subjects

- [char in C#](https://www.ask-codey.com/glossary/char-c-sharp)

Source: https://www.ask-codey.com/glossary/char
