Convert HashSet to TreeSet in Java

In this post, we will see how to convert HashSet to TreeSet in Java. The resultant TreeSet should contain all elements of the HashSet, sorted by their natural ordering.

Copy Objects in Java

In this post, we will discuss various methods to copy objects in Java. Copying an object is creating a copy of an existing object in order to modify or move the copied object without impacting the original object.

Serialization in Java

In this post, we will discuss about Serialization in Java with the help of Serializable Interface and Apache commons Lang’s SerializationUtils Class.