Basic Java Programming

Average Rating
0 out of 5 stars. 0 votes.

Which of the following constants would have the data type of string?

a. “Hello There”
b. “123”
c. “true”
Selected: d. all of the above This answer is correct.

Correct. Any group of characters enclosed within quotation marks is considered to have data type string.

Leave a Reply

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