Which is not a requirement when you create a compare To() method that overrides the Object class

Question:

Which is not a requirement when you create a compare To() method that overrides the Object class compare To() method?
a. It must accept a parameter.
b. Its return type must be boolean.
c. It should return a value that is –1, 0, or 1.
d. It must be named compare To ().

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Java Programming

ISBN: 9780357673423

10th Edition

Authors: Joyce Farrell

Question Posted: