Answer:
Option B.
Explanation:
It is the String function of the Java Programming Language that is used to replace the string characters from the Unicode value for matching of both the strings are similar, it results 0, otherwise, it results positive or negative number.
So, CompareTo() function is used to match objects of Array.Sort() or Array.binarySearch() function.