Clone() Method in Java

In this post, we will discuss how to copy an object in Java using clone() method in Object class and one provided by Apache Commons Lang. We will also discuss about shallow copy and deep copy in detail.

Split Array into Two Parts in Java

In this post, we will see how to split array into two parts in Java. If the array contains an odd number of items, the extra item should be part of the first array.

Merge Arrays into an Object array in Java

In this post, we will discuss how to merge arrays of same type into single a new Object array using Java 8, System.arraycopy(), Java Collections, Guava and Apache Commons Lang.