To use the binarySearch method of the Arrays class on an array of ints, you must first

To use the binarySearch method of the Arrays class on an array of ints, you must first


a. implement the Comparable interface
b. sort the array
c. override the equals method
d. create an Arrays object


Answer: b. sort the array


Learn More :