Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these method is used to change an element in a LinkedList Object?
  2. A.
    change()
    B.
    set()
    C.
    redo()
    D.
    add()

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    An element in a LinkedList object can be changed by first using get() to obtain the index or location of that object and the passing that location to method set() along with its new value.


Be The First To Comment