Q17
Which of the following is the correct way to compare two strings in a case-insensitive manner in Java?
A.
str1.equals(str2)
B.
str1.compareToIgnoreCase(str2)
C.
str1.equalsIgnoreCase(str2)
AnswerD.
str1.compare(str2)
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board