1.

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» Correct answer is (c) removeLast()

For explanation I would say: removeLast() and removeFirst() methods are used to remove elements in end and beginning of a linked list.


Discussion

No Comment Found

Related InterviewSolutions