Home / MCQ Bank / Computer
Computer Collections Framework In Java

What is difference between dequeue() and peek() function of java?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • dequeue() removes and returns the next item in line while peek() returns the next item in line

Related Computer Questions

Which of the following is example use of Poisson distribution? In Excel which key is used for format number in scientific format? How do you convert a string to lowercase in Java? What is a common application of a Deque data structure? The taskbar is located