Ask Question
5 March, 08:47

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

+5
Answers (1)
  1. 5 March, 10:19
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers