Multiple Choice
If str1 is "Hello" and str2 is "Hi", which of the following could not be a result of str1.compareTo(str2) ;?
A) -9
B) -5
C) -1
D) 1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: In Java, !, &&, and || are
Q10: =! is a relational operator.
Q13: The symbol >= is a logical operator.
Q14: What does <= mean?<br>A) less than<br>B) greater
Q18: Which of the following has the highest
Q20: switch (lastInitial)<br>{<br>Case 'A':<br>System.out.println("section 1");<br>Break;<br>Case 'B':<br>System.out.println("section 2");<br>Break;<br>Case 'C':<br>System.out.println("section
Q21: Which of the following is not a
Q27: int x, y;if (x 4)<br>{<br>If (x >
Q28: int x;<br>X = (1 'K' >= 'F')
Q43: A program uses selection to implement a