Solved

What Is the Result of the Following Statement

Question 87

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents