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
Q40: Based on the code above, what is
Q41: Including a semicolon before the action statement
Q42: All switch structures include default cases.
Q43: A program uses selection to implement a
Q44: Suppose P and Q are logical expressions.
Q45: Which of the following is a relational
Q46: Based on the code above, what is
Q47: Suppose that you have the following code:
Q48: All switch cases include a break statement.
Q50: The method compareTo is part of the