Q22
In Java, what is the purpose of the `compareTo` method in the Comparable interface?
A.
To execute SQL queries
B.
To compare two objects for order
AnswerC.
To create JavaBeans
D.
None of These
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board