Question: Suppose a developer gets class XYZ files and documentation from a subcontractor. This class does not implement the Comparable interface. What must be true in
Suppose a developer gets class XYZ files and documentation from a subcontractor. This class does not implement the Comparable interface. What must be true in order for the developer to sort an array of XYZ objects without modifying the XYZ class? Question 9 options: The XYZ class must implement the Sortable interface. XYZ objects must be randomly distributed. XYZ objects must be ordered. The developer must supply a comparator object belonging to a class that implements the Comparator interface
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
