Which method retrieves, but does not remove, the last element of a LinkedList?

Last Updated :
Discuss
Comments

Which method retrieves, but does not remove, the last element of a LinkedList?


peekLast()


lastElement()

getLast()

rear()

Share your thoughts in the comments