Sail E0 Webinar
Question

Which of these methods can be used to delete the last element in a LinkedList object?


Options:
A .  remove()
B .  delete()
C .  removeLast()
D .  deleteLast()
Answer: Option C

removeLast() and removeFirst() methods are used to remove elements in end and 

beginning of a linked list.




Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers