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
Q3: If chr is a character variable, which
Q10: A flag may have the values
A) 0
Q10: The _ statement is used to make
Q12: What will be the value of ans
Q12: A block of code is enclosed in
Q14: What will be the values of ans,x,and
Q21: What will be the value of pay
Q33: If str1 and str2 are both Strings,
Q46: Which of the following expressions will determine
Q48: Which of the following is the correct
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents