What is used to compare Strings in Java for equality?

A. = operator
B. == operator
C. compareTo method
D. equals method


Answer: D

Computer Science & Information Technology

You might also like to view...

How might a resolver attempt to find the IP address of the example domain?

What will be an ideal response?

Computer Science & Information Technology

A chart can be displayed on the same page as the source data, or it can be moved to its own sheet

Indicate whether the statement is true or false

Computer Science & Information Technology

In a shared network environment, using the Contact Card option, you could do the following with certain authors of the spreadsheet: ________

A) open Word B) send an email C) add an address file D) reply to an email

Computer Science & Information Technology

Which of the following is NOT an example of a stack in everyday life?

A. a spindle of blank DVDs B. a stack of plates in a cafeteria line C. a pile of napkins D. a jar of jellybeans

Computer Science & Information Technology