Solved

To Do a Case Insensitive Compare Which of the Following

Question 39

Multiple Choice

To do a case insensitive compare which of the following could be used to test the equality of two strings,str1 and str2?


A) (str1.equalsIgnoreCase(str2) )
B) (str1.compareToIgnoreCase(str2) == 0)
C) Only a
D) a and b

Correct Answer:

verifed

Verified

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

Related Questions