InterviewSolution
| 1. |
What Is Deque Interface In Java? |
|
Answer» Java.util.Deque is an interface in Java which EXTENDS QUEUE interface and provides support for element insertion and removal at both ends. The name deque is SHORT for "DOUBLE ENDED queue" and is usually pronounced "deck". Some of the implementing classes of the Deque interface are LinkedList, ConcurrentLinkedDeque, LinkedBlockingDeque. Note that addFirst() and addLast() methods provided in the LinkedList implementation are specified by the Deque interface. Java.util.Deque is an interface in Java which extends Queue interface and provides support for element insertion and removal at both ends. The name deque is short for "double ended queue" and is usually pronounced "deck". Some of the implementing classes of the Deque interface are LinkedList, ConcurrentLinkedDeque, LinkedBlockingDeque. Note that addFirst() and addLast() methods provided in the LinkedList implementation are specified by the Deque interface. |
|