I've been looking for the proper way to override the the equals method and I've seen a ton of different solutions. I understand most of what is going on (checking for null, instanceof, etc) but a lot of the examples I've seen do something like this...
Isn't this comparing references instead of values? Is something like the following better practice?
Thanks in advance
Isn't this comparing references instead of values? Is something like the following better practice?
Thanks in advance