Q. Which of the following is the correct way to compare two strings in a case-insensitive manner in Java?
β
Correct Answer: (C)
str1.equalsIgnoreCase(str2)
You must be Logged in to update hint/solution