A

Admin • 828.70K Points
Coach

Q. What is the result of calling `pop()` on an empty Deque?

  • (A) null
  • (B) 0
  • (C) NoSuchElementException
  • (D) IllegalArgumentException
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
pop() throws NoSuchElementException if the Deque is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.