A

Admin • 833.24K Points
Coach

Q. Which method checks if a queue contains a specific element?

  • (A) has()
  • (B) includes()
  • (C) contains()
  • (D) find()
  • Correct Answer - Option(C)
  • Views: 31
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin

`contains()` is used to check for the presence of an element in the queue.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.