Tell me are there implementations for sorting and searching in the Java libarary?

Submitted by: Muhammad
Yes. The Java library java.util.Arrays contains the methods Arrays.sort() and Arrays.binarySearch() that implement mergesort and binary search for Comparable types and a sorting implementation for primitive types based on a version of the quicksort algorithm, which is faster than mergesort and also sorts an array in place (without using any extra space). SystemSort.java illustrates how to use Arrays.sort().
Submitted by: Muhammad

Read Online Sort And Searching Job Interview Questions And Answers