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 150 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
Thanks for the timely response, appreciate it


FergA

  • Member
  • Posts: 352
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

Elderly adults are living longer, and causes of death are shifting. At the same time, autopsy rates are at or near their lowest in history.

Did you know?

The most common childhood diseases include croup, chickenpox, ear infections, flu, pneumonia, ringworm, respiratory syncytial virus, scabies, head lice, and asthma.

Did you know?

Alcohol acts as a diuretic. Eight ounces of water is needed to metabolize just 1 ounce of alcohol.

Did you know?

More than nineteen million Americans carry the factor V gene that causes blood clots, pulmonary embolism, and heart disease.

Did you know?

The types of cancer that alpha interferons are used to treat include hairy cell leukemia, melanoma, follicular non-Hodgkin's lymphoma, and AIDS-related Kaposi's sarcoma.

For a complete list of videos, visit our video library