A

Admin • 833.24K Points
Coach

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

  • (A) 0
  • (B) false
  • (C) null
  • (D) Throws an exception
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category Java
  • Hashtags: Java Deque

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.