A

Admin • 831K Points
Coach

Q. Which method returns null if the queue is empty while removing?

  • (A) remove()
  • (B) delete()
  • (C) poll()
  • (D) get()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`poll()` 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.