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
(d) peek() removes and returns the next item in line while dequeue() returns the next item in line
This question was posed to me in an internship interview.
Enquiry is from Data Structures-Queue in section java.util – The Collections Framework of Java
Select the correct answer from above options
Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners