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

name the mother goose character who was philoprogenitive
explain how you can use a number line to show that 5/8 is greater than 3/8
Sarah has a photography blog. 3/7 of her photos are of nature. 1/4 of the rest are of her friends. what fraction of all Sarah's photos is of her friends? suppor
Complete the statement. Round to the nearest hundredth if necessary. 3 L ≈ qt
RESEARCH ANY ORGANISATION IN SOUTH AFRICA THAT IS DEALING WITH CORRUPTION AND FRAUD!(EXCLUDING SAPS).EVALUATE IF THEY HAVE SUCCESSFUL IN EXERCING THEIR MANDATE
list the reforms that napoleon made as leader of france
All proteins carry the genetic codes that determine the structure and function of an organism. (True or False)
what was the point of the French Constitution of 1791
Soft body parts are usually not preserved as fossils. a. True b. False
six friends share 4 apples equally. how much apple does each friend get?