Multiple Choice
To compare two strings lexicographically the String method ____________ should be used.
A) equals
B) equalsIgnoreCase
C) compareTo
D) ==
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q9: An empty statement is defined as a
Q13: In a switch statement,the choice of which
Q19: Write Java code that uses a while
Q24: Write a multi-way if-else statement that evaluates
Q31: You may omit the else part of
Q37: When using a compound Boolean expression joined
Q37: What is short-circuit evaluation of Boolean expressions?
Q39: The OR operator in Java is represented
Q43: A compound statement is enclosed between:<br>A)[ ]<br>B){
Q44: Write a complete Java program that prompts