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.

Clone a Set in Java

Write a Java program to construct a set containing all elements of the specified set and in the same order as the original set. In other words, clone a Set in Java. Assume there are no mutable objects in the set and a shallow copy can be performed.

Serialization of Java Objects using Jackson Library

In this post, we will discuss Serialization and deserialization of Java objects of Java objects using Jackson library by converting Java Objects into their JSON representation and then JSON to an equivalent Java object.