Solved

What Is the Result of the Following Statement

Question 14

Multiple Choice

What is the result of the following statement?
String s = "You" + "had" + "me" + "at" + "hello";


A) The string s has the following value: "You had me at "hello"
B) The statement results in an error because the + operator can be used only with numbers
C) The statement results in an error because the + operation cannot be performed on string literals
D) The string s has the following value: "Youhadmeathello"

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions