Discussion :: JAVA MCQs
- Which of these methods can be used to delete the last element in a LinkedList object?
Answer : Option C
Explanation :
removeLast() and removeFirst() methods are used to remove elements in end and beginning of a linked list.
Be The First To Comment