Asked in
Java Programming
Software Engineering
Computer Science

What is the different sorting algorithms for arrays in java?

Answer

User Avatar
Wiki User
July 23, 2009 7:32PM

The built in array sorting algorithm (java.util.Arrays.sort) depends on the type of data being sorted. Primitive types are sorted with a modified implementation of quicksort. Objects are sorted with a modified implementation of mergesort.