Computers and Technology

Consider the following declarations. String s1 = "apple";
String s2 = "APPLE";

Which of the following expressions is true

A.
s1.equals(s2) && s1.equalsIgnoreCase(s2)
B.
!s1.equals(s2) && s1.equalsIgnoreCase(s2)
C.
s1.equals(s2) && !s1.equalsIgnoreCase(s2)
D.
!s1.equals(s2) && !s1.equalsIgnoreCase(s2)

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, mathman783
Which two editions of windows 7 support 64 bit cpus? choose two out of professional, business, starter, or home premium.
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, Dweath50
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
image
Computers and Technology, 23.06.2019 17:30, granta1
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, yasarhan2
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
Do you know the correct answer?
Consider the following declarations. String s1 = "apple";
String s2 = "APPLE";

Wh...

Questions in other subjects:

Konu
Mathematics, 17.02.2021 03:20