Clone a List in Java

In this post, we will see how to clone a List in Java. We need to construct a list containing the elements of the specified list, in the same order as the original list.   Assume there are no mutable objects in the list. i.e. the code can perform a shallow copy.