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:
Verified
Q1: All it takes for an OR expression
Q2: When two strings are compared using the
Q3: _ operators are used to determine whether
Q5: If the expression on the left side
Q6: Programs never need more than one path
Q7: Which of the following expressions could be
Q8: A block of code is enclosed in
Q10: The System.out.printf method formats a string and
Q11: The String.format method works exactly like the
Q19: When testing for character values, the switch
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents