Q118
What is difference between dequeue() and peek() function of java?
A.
dequeue() and peek() remove and return the next time in line
B.
dequeue() and peek() return the next item in line
C.
dequeue() removes and returns the next item in line while peek() returns the next item in line
AnswerD.
peek() removes and returns the next item in line while dequeue() returns the next item in line
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board