In your example, the first array is smaller, as it would compare a strArr1[16] of null against strArr2[16] of "abc". Since null is smaller, strArr1 is smaller than strArr2.