A

Admin • 828.43K Points
Coach

Q. What will `peekLast()` return on an empty Deque?

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

Explanation by: Admin
peekLast() returns null if the Deque is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.