File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Object.hashCode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Object.hashCode()" Watch "Object.hashCode()" New topic


Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 360
Why this

runned multiple prints allways this

[ June 13, 2006: Message edited by: Pavel Kubal ]
vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
Whats the question? obj1.hashCode() will always be different from obj.hashCode() as they are 2 different objects
I agree. Here's the link:
subject: Object.hashCode()
It's not a secret anymore!