A

Admin • 802.91K Points
Coach

Q. What exception is thrown if removeLast() is called on an empty Deque?

  • (A) NullPointerException
  • (B) IllegalStateException
  • (C) NoSuchElementException
  • (D) IllegalArgumentException

Explanation by: Admin
removeLast() 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.