A

Admin • 828.03K Points
Coach

Q. What will `push()` do in a Deque?

  • (A) Remove element
  • (B) Insert at the head
  • (C) Insert at the tail
  • (D) Throw exception
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
push() inserts an element at the front of the Deque.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.