What is the correct method used to insert and delete items from the queue?
(a) push and pop
(b) enqueue and dequeue
(c) enqueue and peek
(d) add and remove
This question was posed to me by my school principal while I was bunking the class.
The query is from Data Structures-Queue in section java.util – The Collections Framework of Java