Which method is used to add an element at the end of a Deque?

  1. offerLast()
  2. addEnd()
  3. append()
  4. push()
Correct answer offerLast()

Explanation

offerLast() adds an element to the tail of the Deque.

Update: Admin added a tag on this question

Topics

By Admin · · 40 views