A

Admin • 825.56K Points
Coach

Q. What is returned by `peekFirst()` if the Deque is empty?

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

Explanation by: Admin
`peekFirst()` returns null when there are no elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.