This topic contains a solution. Click here to go to the answer

Author Question: The ________ method in the Queue interface retrieves, but does not remove, the head of this queue, ... (Read 124 times)

BRWH

  • Hero Member
  • *****
  • Posts: 553

Question 1

The ________ method in the Queue interface retrieves, but does not remove, the head of this queue, returning null if this queue is empty.
◦ poll()
◦ element()
◦ remove()
◦ peek()

Question 2

The ________ method in the Queue interface retrieves, but does not remove, the head of this queue, throwing an exception if this queue is empty.
◦ remove()
◦ poll()
◦ element()
◦ peek()


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by BRWH on May 6, 2020

dantucker

  • Sr. Member
  • ****
  • Posts: 346
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 29% of students answer this correctly




BRWH

  • Member
  • Posts: 553
Reply 2 on: May 6, 2020
Wow, this really help


tkempin

  • Member
  • Posts: 332
Reply 3 on: Yesterday
Excellent

 

Did you know?

When intravenous medications are involved in adverse drug events, their harmful effects may occur more rapidly, and be more severe than errors with oral medications. This is due to the direct administration into the bloodstream.

Did you know?

Amphetamine poisoning can cause intravascular coagulation, circulatory collapse, rhabdomyolysis, ischemic colitis, acute psychosis, hyperthermia, respiratory distress syndrome, and pericarditis.

Did you know?

Adolescents often feel clumsy during puberty because during this time of development, their hands and feet grow faster than their arms and legs do. The body is therefore out of proportion. One out of five adolescents actually experiences growing pains during this period.

Did you know?

There are approximately 3 million unintended pregnancies in the United States each year.

Did you know?

The horizontal fraction bar was introduced by the Arabs.

For a complete list of videos, visit our video library