In general to make a copy of object, we assign it to a new object like :
Object a = new Object();
Object b = a;
While doing this, what all things we need to take care of? I guess Object a and b are dependent on each other as they will be pointing to same location so changing the value in one will change in other also. Please correct if its wrong.
Also, is this way is different from cloning or we can consider it as a cloning only.
If its cloning, will this do the deep cloning or shallow?