File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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?