4 ms·
>All Objects are sorted using the third signature. Just to be pedantic int[] and long[] are both objects, but will be sorted using the first two signatures bec
by charcircuit 4y ago
>All Objects are sorted using the third signature.
Just to be pedantic int[] and long[] are both objects, but will be sorted using the first two signatures because the JVM uses different instructions for loading and storing elements from an array. Technically you could make a single function to return an array's length since it uses the same instruction.
- anonymoushn 4y agoThis surely meant "All arrays of Objects"