Given a properly prepared String array containing five elements, which range of results could a proper invocation of Arrays.binarySearch() produce? A. 0 through 4 B. 0 through 5 C. -1 through 4 D. -1 through 5 E. -5 through 4 F. -5 through 5 G. -6 through 4 H. -6 through 5
Answer: G, may i know what is inverted and then decremented.(as it was explained in the answers part of self test)
posted 9 years ago
I think below link will clear your doubt. Refer it.