关于对象与references
对象与references这两者之间到底是什么关系啊? 最近书上总是提到 不懂啊
public class aaa {
int c=1;
public static void main(String[] args) {
aaa a1=new aaa();
aaa a2=new aaa();
System.out.println(a1 == a2);
System.out.println(a1 != a2);
}
}
以上这种程序的输出结果却是 false true;难以理解