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:

Verified
Correct Answer:
Verified
Related Questions
Q14: What does the following code display? <br>int
Q18: A local variable's scope always ends at
Q33: In a switch statement, if two different
Q35: What would be the value of discountRate
Q36: A flag may have the values<br>A) 0
Q38: These operators are used to determine whether
Q42: Which of the following will format 12.78
Q48: When two Strings are compared using the
Q52: Because the || operator performs short-circuit evaluation,
Q58: What is the value of ans after