Home » JAVA Programming » Arrays » Question
  1. Which of these methods can be used to search an element in a list?
    1. get()
    2. binaryserach()
    3. sort()
    4. find()
    5. None of these
Correct Option: B

binaryserach() method uses binary search to find a specified value. This method must be applied to sorted arrays.



Your comments will be displayed only after manual approval.