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


a. str1.equalsIgnoreCase(str2)

Computer Science & Information Technology

You might also like to view...

Which of the following informs custodians and users how to treat the information they use and the systems they interact with?

A) Processing standards B) Handling standards C) Organizational standards D) Classification standards

Computer Science & Information Technology

Use grep with the –c (count; Sobell, page 859) option to display the number of lines that contain the string Remote in the /etc/services file.

What will be an ideal response?

Computer Science & Information Technology

A key advantage of Software as a Service (SaaS) is _______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is not a command used to configure IPv6 unicast-routing?

a. ipv6 unicast-routing b. ipv6 enable c. show ipv6 interface d. All the above are used to enable IPv6 unicast-routing.

Computer Science & Information Technology