tleclair313 tleclair313
  • 22-08-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 28-08-2019

Answer:

(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.

Answer Link

Otras preguntas

Which constitutional amendment gave women the right to vote? a. Seventeenth Amendment b. Eighteenth Amendment c. Nineteenth Amendment d. Sixteenth Amendment
what is the name given to cell division in eukaryotes
Three of the common characteristics of hunter-gatherer communities were _____.
Who had the most political power under the articles of confederation?
PLEASE HELP Identify the sentence that uses correct punctuation. a. We had to walk, all the way to the train station, the bus doesn't go that far. b. We had to
x^2 - 11x + 10 = 0 Factor and solve
The Elkins Act and the Hepburn Act regulated railroads by
What were the differences between the Middle Ages and the Renaissance in the attitude toward worldly pleasures?
Which statement about impeachment under the U.S. Constitution is true? a. The Senate acts as jury in the trial of a government official accused of serious misco
The formation of the National Assembly had what long-term effect on the Estates-General?