By default Java does Shallow Cloning, if an object is cloned and it has a String like this String s = new String("Hi");
then the cloned object will point to a new String object or it will have a reference to the previous object?
The question here is that does Java treat Strings different when cloning and creates a new object of it or not??