Home » JAVA Programming » Collections » Question
  1. Which of these methods can be used to delete the last element in a LinkedList object?
    1. deleteLast()
    2. removeLast()
    3. remove()
    4. delete()
    5. None of these
Correct Option: B

removeLast() and removeFirst() methods are used to remove elements in end and beginning of a linked list.



Your comments will be displayed only after manual approval.