Tech Q&A

作者 QIFAN 日期 2016-09-14
Tech Q&A
  • Explain why Java prohibits generic array creation.

source: https://www.quora.com/Why-does-Java-prohibit-generic-array-creation

  • **Why Arrays.sort() use merge sort instead of quick sort when sorting reference types?

Merge sort has nlogn ganruntee, and memory doesn’t matter because they are references.