Its probably a very simple one but its\' still confusing me!
import java.util.ArrayList; public class Sample { ArrayList i = new ArrayLis
The Object is not cloned, just an additional object reference has been added. Since ArrayList is not immutable, any change to the object is reflected in both the object references.