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:

Verified
Correct Answer:
Verified
Related Questions
Q37: What will be the value of x
Q38: What is the value of x after
Q39: What is the value of charges after
Q40: Java requires that the boolean expression being
Q41: What will be printed when the following
Q43: The if-else statement will execute one group
Q44: Which of the following expressions determines whether
Q45: What will be displayed after the following
Q46: What will be the value of ans
Q47: A flag may have the values<br>A) defined