A

Admin • 828.70K Points
Coach

Q. Which Deque method inserts an element at the tail and throws exception if full?

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

Explanation by: Admin
addLast() throws IllegalStateException if the Deque is bounded and full.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.