Basic Java Programming

Average Rating
0 out of 5 stars. 0 votes.

What values can be stored in a variable having a Boolean data type?

a. 0 and 1
b. yes and no
Selected: c. true and false This answer is correct.
d. a Boolean variable cannot be used to store a value

Correct. The two values of a Boolean data type are true and false.

Leave a Reply

Your email address will not be published. Required fields are marked *