Ask Question
14 September, 08:05

The java class library interface queue method to put an entey on the back of a queue that returns false if the method falls is

A. Add

B. put

C. poll

D. offer

+2
Answers (1)
  1. 14 September, 10:50
    0
    (A) Add.

    Explanation:

    The add method of queue inserts an element at the tail of the queue.

    syntax: - queue. add (element);

    It's return type is boolean it returns true if the insertion is successful and returns false if the insertion is unsuccessful and it returns an IllegalSpace Exception if there is no space left to insert an element in the queue.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The java class library interface queue method to put an entey on the back of a queue that returns false if the method falls is A. Add B. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers