Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these methods deletes all the elements from invoking collection?
  2. A.
    clear()
    B.
    reset()
    C.
    delete()
    D.
    refresh()

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    clear() method removes all the elements from invoking collection.


Be The First To Comment