What are the Popular Implementations of Deque in Java ?

The two most popular implementation of Deque interface in Java are...

1 - ArrayDeque : It is a resizable array implementation of Deque. The capacity of ArrayDeque can increase based on the need of the program. It is not thread safe implementation. Also the iterator on ArrayDeque is failfast.

2 - LinkedList : This is another popular implementation of Deque interface in Java. It is also not synchronized, so it is not thread-safe. It mainly provides functionality of a doubly linked list.



You May Interest

What is the Lifecycle Stages of JSP ?

How Will You Pass Information From One JSP to Another JSP ?

What are the Differences Between a List and Set Collection in Jav ...

What is a Shutdown Hook in Java ?

Why Do You Use Upcasting or Downcasting in Java ?