class A
{
int a=1;
}
class Appa
{
public static void main(String args[])
{
A obj1,obj2;
obj1=new A();
obj2=new A();
System.out.println("obj1==obj2:"+(obj1.equals(obj2 )));
System.out.println("obj1==obj2:"+(obj1==obj2));
}
}
输出结果为什么都是false阿?
繁星淼淼
相关分类