A

Admin • 828.03K Points
Coach

Q. Which method adds the element at the front of a Deque?

  • (A) add()
  • (B) addFirst()
  • (C) offerLast()
  • (D) enqueue()
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`addFirst()` inserts the element at the front of a Deque.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.