What Is Difference Between Dequeue And Peek Function Of Java #782
What is difference between dequeue() and peek() function of java?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Util Collections Framework - Java Queue - Quiz No.1.
What is difference between dequeue() and peek() function of java?
dequeue() and peek() remove and return the next time in line
dequeue() and peek() return the next item in line
dequeue() removes and returns the next item in line while peek() returns the next item in line
peek() removes and returns the next item in line while dequeue() returns the next item in line