题库 软件开发 题目列表 定义如下程序: public class Student{    public St...
单选题
定义如下程序:
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();
        }
}
以下表达式中值为true的是?()
A.

t1 == t2

B.

t1.equals(t2)

C.

t1.st != t2.st

D.

t1.st.equals(t2.st)

题目信息
校招真题
-
正确率
0
评论
24
点击