A

Admin • 833K Points
Coach

Q. Which method is used to add an element at the tail of the queue?

  • (A) push()
  • (B) append()
  • (C) add()
  • (D) enqueue()
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin

`add()` inserts an element at the tail and may throw an exception if full.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.