A

Admin • 830.13K Points
Coach

Q. Which Deque method inserts an element and returns false if capacity is full?

  • (A) offerFirst()
  • (B) addFirst()
  • (C) push()
  • (D) enqueueFirst()
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
`offerFirst()` returns false if the Deque is full instead of throwing an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.