The java.util.ArrayDeque class provides resizable-array and implements the Deque interface. Following are the important points about Array Deques:
Array deques have no capacity restrictions so they grow as necessary to support usage.
They are not thread-safe; in the absence of external synchronization.
They do not support concurrent access by multiple threads.
Null elements are prohibited in the array deques.
They are faster than Stack and LinkedList.
Read full article from Java.util.ArrayDeque Class
No comments:
Post a Comment