Page 1 of 1

About Question enthuware.ocpjp.v8.2.1306 :

Posted: Sun Apr 17, 2016 12:35 pm
by Robbie
The question says:
Which of the given options (independent of each other or together) must be inserted at //1 so that it will print 2?
While the answer says:
In this question, before we use binarySearch(), we must sort the array using Arrays.sort(sa) method. Therefore, option 3 and 4 are correct.
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?

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.

Re: About Question enthuware.ocpjp.v8.2.1306 :

Posted: Thu Mar 22, 2018 9:34 pm
by Wesley
Aaah that same thing messed me up too.