Intermediate
Java
Q68 / 100
What does Collections.sort() use internally by default?
Correct! Well done.
Incorrect.
The correct answer is C) TimSort (merge + insertion sort hybrid)
C
Correct Answer
TimSort (merge + insertion sort hybrid)
Explanation
Java's Arrays.sort() and Collections.sort() use TimSort, a hybrid stable sorting algorithm derived from merge sort and insertion sort.
Progress
68/100