Solved

Which of the Following Expressions Could Be Used to Perform

Question 42

Multiple Choice

Which of the following expressions could be used to perform a case-insensitive comparison of two String objects named str1 and str2?


A) str1.equalsIgnoreCase(str2)
B) str1.equalsInsensitive(str2)
C) str1 != str2
D) str1 || str2

Correct Answer:

verifed

Verified

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

Related Questions