Solved

If Str1 and Str2 Are Both String Objects, Which of the Following

Question 4

Multiple Choice

If str1 and str2 are both String objects, which of the following expressions will correctly determine whether or not they are equal?


A) str1 = str2
B) str1 && str2
C) str1.equals(str2)
D) str1 += str2

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