πŸ“Š JAVA
Q. 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)
  • (D) str1.compare(str2)
πŸ’¬ Discuss
βœ… Correct Answer: (C) str1.equalsIgnoreCase(str2)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
80%
Success Rate