Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q on hashcode()

 
Anand Ko
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am preparing for scjp.
What type of questions on hashcode() will be ?
 
kapil munjal
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you will find questions if equals method returns true then hashcode method will return the same value. Or may be the reverse, if hashcode method returns the same value then equals method should return true.

Mainly hashcode questions are related to equals method implementation.

Kaps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic