public class Student{
public String name;
public Student(String name){
this.name = name;
}
}
public class Test implements Cloneable{
public Student st;
public static void main(String[] args){
Student s1 = new Student(“Tom”);
Test t1 = new Test();
t1.st = s1;
Test t2 = (Test) t1.clone();
}
} t1 == t2
t1.equals(t2)
t1.st != t2.st
t1.st.equals(t2.st)