The __________ method in the Queue interface retrieves, but does not remove, the head of this queue, throwing an exception if this queue is empty.

a. poll()
b. remove()
c. peek()
d. element()

d

Computer Science & Information Technology

You might also like to view...

Scenario Manager is one of the tools under ________ in the Forecast group on the Data tab

A) Goal Seek B) Data Table C) Data Validation D) What-If Analysis

Computer Science & Information Technology

Suppose c is a variable of type char. We want to know if c is a lowercase vowel letter (a/e/i/o/u). What is wrong with the following comparison?

if (c == 'a' || 'e' || 'i' || 'o' || 'u')

Computer Science & Information Technology