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
Q1: The System.out.printf method formats a string and
Q21: In an if/else statement, if the boolean
Q22: What will be printed when the following
Q23: What does the following code display?<br>Double x
Q24: What would be the value of x
Q26: What will be the value of pay
Q27: What would be the value of bonus
Q28: What is the value of ans after
Q30: Which of the following is the correct
Q44: Which of the following expressions will determine