java - Arrays.sort implementation, what does it do specifically -


what sorting algorithm arrays.sort use in java? change dynamically depending on operating system, or input size or something?

you can see source on openjdk. primitive types, uses insertion sort short arrays , modified quicksort longer ones; , tim sort object arrays.

java 6 arrays.sort()

i don't see how os effect sorting.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -