How can we make a clone of java class object?