1.所有的类都是Object的子类。
2.string,Stringbuffer和任何数组都是对象,所以按照引用传递。
3.查看api就知道有没有实现了。答案是没有。
4.看最后一行
equals
public boolean equals(Object anObject)
Compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object. Overrides:
equals in class Object
2.string,Stringbuffer和任何数组都是对象,所以按照引用传递。
3.查看api就知道有没有实现了。答案是没有。
4.看最后一行
equals
public boolean equals(Object anObject)
Compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object. Overrides:
equals in class Object
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货