Given a properly prepared String array containing five elements,which range
of results could a proper invocation of Arrays.binarySearch() produce?
Ans. -6 through 4
Why is the answer -6.According to me the last insertion point shoule be -5 by the formula
-(insertion point )- 1.
Since the last index must be 4 it becomes -4-1=-5