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 120 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
YES! Correct, THANKS for helping me on my review


ktidd

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

 

Did you know?

The horizontal fraction bar was introduced by the Arabs.

Did you know?

It is believed that humans initially contracted crabs from gorillas about 3 million years ago from either sleeping in gorilla nests or eating the apes.

Did you know?

Methicillin-resistant Staphylococcus aureus or MRSA was discovered in 1961 in the United Kingdom. It if often referred to as a superbug. MRSA infections cause more deaths in the United States every year than AIDS.

Methicilli ...
Did you know?

About 600,000 particles of skin are shed every hour by each human. If you live to age 70 years, you have shed 105 pounds of dead skin.

Did you know?

To maintain good kidney function, you should drink at least 3 quarts of water daily. Water dilutes urine and helps prevent concentrations of salts and minerals that can lead to kidney stone formation. Chronic dehydration is a major contributor to the development of kidney stones.

For a complete list of videos, visit our video library