A

Admin • 828.03K Points
Coach

Q. What does `peek()` return if the queue is empty?

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

Explanation by: Admin
`peek()` returns null if the queue is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.