As per the JAVA documentation, the super.clone() when called returns a shallow copy of the object. In the code below I have two objects name and id
try this test
Cloning obj = new Cloning("Annu",203, 1000); Cloning obj1 = (Cloning)obj.clone(); System.out.println(obj.id == obj1.id);
it prints true, it means id of cloned object points to the same instance of Integer, if it were deep clone it would print false
true
false