Multiple choice

What data type would I use for the following: Y

  1. boolean

  2. char

  3. String

  4. int

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A single character, such as 'Y', is represented by the character (char) data type.