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 area on the map shows the Texas Annexation? A. I B. II C. III D. IV
Solve the equation using the Zero­Product Property. 6x(3x + 1) = 0
What did people do when the Dow jones industrial average began to drop sharply in late October 1929
The Connecticut Bueller theory assumes that particles of an ideal gas are
Which sentence uses the underlined word correctly? A. The geese in the river swam together between the cattails. B. The geese in the river swam together amon
Which best describes the brain stem?
If an entire wolf population dies, the moose population on which it preys will grow to the environment’s ____________________ .
Wave A has a long fetch. Wave B has a short fetch. Which of the following statements is true? Wave A is more powerful than Wave b. Wave B is more powerful than
what did Spain do after the American Revolution 2 discourage American settlements west of the Appalachian Mountains
What is 7 (1/2) in 9 minutes as a unit rate