top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which sorting algorithms are used in Java as default ?

0 votes
403 views
Which sorting algorithms are used in Java as default ?
posted Jan 17, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In Java, default sort method i.e. Arrays.sort() methods merge sort or a tuned Quicksort depending on the datatypes and for implementation efficiency switch to insertion sort when fewer than seven array elements are being sorted.

answer Jan 19, 2015 by Salil Agrawal
...