• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I Override equals() and hashCode() in my class

 
Mahi Ranga
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one doubt ,i.e Can I Override equals() and hashCode() in my class.If i override these two methods what will happen.

Thanks in Advace.

Regards,
Mahi.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can override.
For what will happen on overriding you can have search for similar posts in this Forum ( SearchFirst )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic