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...

What does the InitialDelay property of the ToolTip determine?

a) The amount of time that the tool tip appears while the mouse is over a control. b) The amount of time that a mouse must hover over a control before a tool tip appears. c) The amount of time between which two different tool tips appear. d) The amount of time in which the tool tip is hidden for.

Computer Science & Information Technology

Which of the following is not true of system penetration?

a) Every system penetration is potentially dangerous. b) It is a successful breach of a system’s security. c) It leads to denial of service. d) Many attacks rely on a successful system penetration.

Computer Science & Information Technology

Each variable within an array has the same name and the same data type.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The French mathematician Ren Descartes developed a system of quantification for two dimensions called ____.

A. polar coordinates B. Cartesian coordinates C. an Euclidean 3-space D. an ordered pair

Computer Science & Information Technology