A

Admin • 825.56K Points
Coach

Q. What does `removeLast()` return when the deque is empty?

  • (A) null
  • (B) false
  • (C) 0
  • (D) Throws exception

Explanation by: Admin
`removeLast()` throws NoSuchElementException when the deque is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.