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

What was the primary purpose of the Mandate System following World War I? A) to create a Jewish state in the Middle East B) to create an Islamic and Hindu stat
Shawna can paint a fence in 8 hours. Kevin can paint the same fence in 4 hours. How long will it take them working together? Show all work.
How might the study of meteorites help astronomers determine the origin of meteoroids?
An equilateral triangle must be_____. A. right B. acute C. scalene D. obtuse
The term “3 FeCI 2” in a balanced equation says
5 x 3 x 2 +3/0 -45/3+1 =options:a)12b)0c)-1d)impossiblePLEASE PLEASEEEEE HELPPPI WILL MARK YOU BRAINLEST
pls help me need help
The following diagram shows the branching tree diagram of some animals. Which derived characteristic is shared by at least four organisms? A. Large Brain B.
sir tobys reaction Malvoliols crying shows he can be
If point H is translated 4 units to the left and 8 units up, what are the coordinates of H?A) (1,4)B) (1,-4)c) (-1,4)d) (-1,-4)​