This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how to override Java's own methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "how to override Java Watch "how to override Java New topic

how to override Java's own methods?

Claire Yang
Ranch Hand

Joined: Aug 30, 2002
Posts: 57
equals method mentioned in Java API:
Note that it is generally necessary to override the hashCode method whenever equals method is overridden, ...
Can anyone tell me where I can find the java's suggestions about how to override the methods?
Thanks in advance.
[ October 08, 2002: Message edited by: Claire Yang ]
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
There you go:
Javaranch Newsletter 10/2002: Equals And Hash Code by Manish Hatwalne

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link:
subject: how to override Java's own methods?
Similar Threads
equals method
Map and Set
String related
Doubt Regarding HashSet