char
A primitive type that stores one UTF-16 code unit.
What is char in Java?
char — A primitive type that stores one UTF-16 code unit.
class Order {
int itemCount = 3;
double price = 4.50;
char size = 'M';
boolean paid = true;
}
Level: Novice · More Java terms at this level
Updated