While the answer says:Which of the given options (independent of each other or together) must be inserted at //1 so that it will print 2?
So option 3 and 4 don't work independent of each other you need both. I think the question is wrong about the independent part?In this question, before we use binarySearch(), we must sort the array using Arrays.sort(sa) method. Therefore, option 3 and 4 are correct.
Ah after reading the question several times I now see the or together part. So the question is correct but I really need to read carefully.