• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Collections framework.

 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some one tell me the relation between equals(),== and hashCode().
I would also like to know a link for studying collections and if possible a link for questions on this topic.
Thnks.
Tc.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nabila Mohammad:
Can some one tell me the relation between equals(),== and hashCode()...


The "hashCode contract" is discussed in the API under Object's hashCode method. Let us know if that clears it up.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please give the link.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nabila Mohammad:
Can you please give the link.



As Marc mentioned, the "hashCode contract" is discussed in the API under Object's hashCode method. So a quick look at JavaDoc --> Object class --> hashcode() yields....

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()

Henry
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will want to bookmark the main index page...

http://java.sun.com/j2se/1.5.0/docs/api/index.html

...and refer to it often.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll need the Java API documentation very often when you're programming in Java. You can look it up on Internet everytime you need it, but you can also download it and put it on your own computer, so that you can also access it when you have no Internet connection.

On the JDK 5 download page scroll down to "J2SE 5.0 Documentation". Click the button on the right of that to download the documentation, and unzip the ZIP file on your computer after downloading.
reply
    Bookmark Topic Watch Topic
  • New Topic