Clone() Method : Get copy of ArrayDeque in Java

   

Declaration :

Explanation :

Purpose The java.util.ArrayDeque.clone() method returns a copy of this deque.
Parameters NA
Return Value This method returns a copy of this deque.
Exception NA

Java Program : Example

Below example will explain java.util.ArrayDeque.getFirst() method.

Output of Program :