In order to compare objects of a class in different ways,
a) the class must implement the Comparable interface
b) the class must implement the Comparator interface
c) the class must inherit from the Comparator class
d) a separate class must be created that implements the Comparator interface and provides a body for the compare method
e) None of these is correct.
d) a separate class must be created that implements the Comparator interface and provides a body for the compare method
Computer Science & Information Technology
You might also like to view...
When you run your presentation, a hidden slide does not display unless you press the U key.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
To identify the purpose of the webpage is the first step in evaluating ____.
A. support B. citations C. reasonableness D. credit
Computer Science & Information Technology