Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these methods can be used to search an element in a list?
  2. A.
    find()
    B.
    sort()
    C.
    get()
    D.
    binaryserach()

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment