Java equal
public class Object { public boolean equals(Object o) { return this==o; } }
two object references are equal
only if they are pointing to the same object.
可以重写equal 方法。
public class Object { public boolean equals(Object o) { return this==o; } }
two object references are equal
only if they are pointing to the same object.
可以重写equal 方法。