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

in the town zoo 3/28 of the animals are birds . of the birds, 4/15 are birds of prey . what fraction of.the animal at zoo are birds of prey
What is the inverse of the function f(x) = 4x + 8?
10,010 subtracted by 9,909
what is the last question the speaker asked the bird in edgar allen poes the raven
8 meters in 10 seconds
John is a carpenter who survived the plague known as the Black Death. Why would John be able to charge more for his services now than he did before the plague
What's 83.42 rounded to the nearest cent?
What number is equal to its opposite?
What is the equation of the line perpendicular to y=2/3x 1 that passes through the point (12, –6)?
In the port cities of the United States, some migrants experienced riots and violence against them. What was the issue and why? Some ethnic groups just don't g