1. ArrayDeque implements Deque interface and ArrayDeque are available from jdk1.6.
2. Deque is that queue which allows insert and remove of elements from both sides.
3. ArrayDeque is not thread safe. ArrayDeque allows unlimited insertion of elements.
4. ArrayDeque can be used as queue and stack both. When it is used as stack, it is faster than stack and when it is used as queue, it is faster than linkedlist.
Read full article from Example of ArrayDeque in Java
No comments:
Post a Comment