Which of these methods can be used to delete the last element in a LinkedList object?
A. remove()
B. delete()
C. removeLast()
D. deleteLast()
Answer:A
Which of these methods can be used to delete the last element in a LinkedList object?
A. remove() B. delete() C. removeLast() D. deleteLast()
Explanation: removeLast() and removeFirst() methods are used to remove elements in end and beginning of a linked list.