Ask 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. put

C. poll

D. offer

+3
Answers (1)
  1. 21 September, 07:13
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers