Question
Which of these methods can be used to delete the last element in a LinkedList object?
Answer: Option C
Was this answer helpful ?
removeLast() and removeFirst() methods are used to remove elements in end and beginning of a linked list.
Was this answer helpful ?
Submit Solution