Multiple choice

What data type would I use for the following: "true"

  1. boolean

  2. String

  3. char

  4. int

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

The value "true" is enclosed in quotes, which makes it a sequence of characters, classified as a String data type.