Why does Java's Arrays.sort method use two different sorting algorithms for different types? Why does Java's Arrays.sort method use two different sorting algorithms for different types? java java