Which method removes and returns the last element of a Deque?
Correct answer
pollLast()
Explanation
pollLast() removes and returns the last element or returns null if empty.
Update: Admin added a tag on this question
Topics
By Admin · · 34 views