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

Match the following terms to their meanings:

I. operating system II. Windows 8 III. Start screen IV. Windows ID V. Windows 8 apps A. provides access to most-used applications in Windows 8 B. offers access to Microsoft resources on the Internet C. applications specifically designed to run in the Windows 8 Start screen D. software that directs computer activities E. Microsoft release in 2012

Computer Science & Information Technology

While Lauren is monitoring traffic on two ends of a network connection, she sees traffic that is inbound to a public IP address show up inside the production network bound for an internal host that uses an RFC 1918 reserved address. What technology should she expect is in use at the network border?

A. NAT B. VLANs C. S/NAT D. BGP

Computer Science & Information Technology