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
Author

how to override Java's own methods?

Claire Yang
Ranch Hand

Joined: Aug 30, 2002
Posts: 57
equals method mentioned in Java API:
[quota]
Note that it is generally necessary to override the hashCode method whenever equals method is overridden, ...
[/quota]
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
Sheriff

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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to override Java's own methods?
 
Similar Threads
equals method
enums
Map and Set
String related
Doubt Regarding HashSet