A

Admin • 828.43K Points
Coach

Q. Which Deque method inserts an element at the tail without throwing exception?

  • (A) addLast()
  • (B) offerLast()
  • (C) push()
  • (D) putLast()
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
`offerLast()` returns false if the Deque is full, rather than throwing an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.