Skip to content

Commit 7186c28

Browse files
修改拼写错误
1 parent fad52db commit 7186c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes/Java 基础.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ public class EqualExample {
707707

708708
## hashCode()
709709

710-
hasCode() 返回散列值,而 equals() 是用来判断两个对象是否等价。等价的两个对象散列值一定相同,但是散列值相同的两个对象不一定等价。
710+
hashCode() 返回散列值,而 equals() 是用来判断两个对象是否等价。等价的两个对象散列值一定相同,但是散列值相同的两个对象不一定等价。
711711

712712
在覆盖 equals() 方法时应当总是覆盖 hashCode() 方法,保证等价的两个对象散列值也相等。
713713

0 commit comments

Comments
 (0)