Strings in Java are compared for equality by using the ____.
A) = operator
B) == operator
C) compareTo method
D) equals method
Correct Answer:
Verified
Q21: The statements that execute when an if
Q22: A _ is a fundamental control structure
Q24: The most common mistake with an if
Q26: For a extra high-density screen, the pixel
Q27: To compare the lexicographical order of two
Q28: You must use _ to compare primitive
Q29: The resulting value of the expression "sears".compareTo("chicago")
Q30: The method to test a checked property
Q31: The operator for "equal to" is _.
A)
Q36: You test for a(n) _ being true
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