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

Javier plays the saxophone. For 5 days each week, he practices for 1.5 hours. If he does this for 26 weeks, how many total hours will he practice?
Sniff : inhale :: _____ : lop
In the ealry 1800s all of thses were American symbols except
Reread paragraph 3. Which of these is evidence that helps to prove the authors point? HELP PLLSSSS GIVING BRAINLIEST IF ITS RIGHT AND YOUR THE FIRST TO ANSWEERR
what was the first thing produced in factories as a result of the Industrial Revolution ?
can all mcyt fans interact?? I want to see how many ppl here watch it :) just comment!
5. What was the main attraction that drew new settlers to the Northwest territory in the late 1700s and early 1800s? A. The land was uninhabited. B. Growing cit
What are some effects of this change?
Beliefs The strongest and most widespread belief was that of the four and four elements. The humours are and the seat of all these fluids was thought to be the
I'LL GIVE BRAINLIEST: