clone() Method : Java.util.ArrayList


Declaration :

Explanation :

Purpose Method returns a shallow copy of this ArrayList instance
Parameters NA
Return Value Clone of this ArrayList instance
Exception NA

Example

The following example shows the usage of java.util.ArrayList.clone() method.

Output :